Prechádzať zdrojové kódy

refresh the inspector when the scene is loaded

Adam Bowman 8 rokov pred
rodič
commit
ca0b0c079b
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      Playground/js/index.js

+ 3 - 0
Playground/js/index.js

@@ -399,6 +399,9 @@
                 if(scene){
                     if(showInspector){
                         scene.debugLayer.show({initialTab:initialTabIndex});
+                        scene.executeWhenReady(function(){
+                            scene.debugLayer._inspector.refresh();
+                        })
                     }else if(showDebugLayer){
                         scene.debugLayer.show();
                     }