inteja Posted July 12, 2018 Share Posted July 12, 2018 Locally I am getting the following error when trying to change any individual material's properties (e.g. switch a material to wireframe etc) in the inspector. Another example is say changing the alpha fraction - I can input the new value but pressing enter results in the same error and nothing happens and the alpha text input box doesn't disappear. babylon.inspector.bundle.js:2 Uncaught TypeError: Cannot read property 'notifyObservers' of undefined at n.set [as value] (babylon.inspector.bundle.js:2) at n.validateInput (babylon.inspector.bundle.js:2) at n._validateInput (babylon.inspector.bundle.js:2) This functionality seems to work fine in the playground and changing global scene properties (e.g. wireframe rendering) in my local environment also works fine. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2018 Share Posted July 13, 2018 Are you using the latest version (alpha 12?) Quote Link to comment Share on other sites More sharing options...
inteja Posted July 14, 2018 Author Share Posted July 14, 2018 @Deltakosh I'm using latest stable babylonjs 3.2.0 npm package Quote Link to comment Share on other sites More sharing options...
inteja Posted July 14, 2018 Author Share Posted July 14, 2018 The issues I'm experiencing locally don't seem to be evident in the playground with either stable 3.2.0 or 3.3.0 alpha 12 Could be something to do with my local environment or codebase ... but strange though. Not critical as I can easily do without this inspector functionality but I just thought it worth reporting. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2018 Share Posted July 17, 2018 You only need to make sure that your inspector version is aligned with your babylon.js version (which seems not to be the case :)) inteja 1 Quote Link to comment Share on other sites More sharing options...
inteja Posted July 17, 2018 Author Share Posted July 17, 2018 Hi @Deltakosh . I'm a bit confused. How could the inspector version be misaligned? Quote Link to comment Share on other sites More sharing options...
inteja Posted July 17, 2018 Author Share Posted July 17, 2018 Arghhh .... I should have just RTFM ... I see now in docs that preview version of inspector is loaded by default from https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js Sorry I should have seen this before. Will try that. Quote Link to comment Share on other sites More sharing options...
inteja Posted July 17, 2018 Author Share Posted July 17, 2018 Switched from default preview to cdn (stable) inspector: BABYLON.DebugLayer.InspectorURL = 'https://cdn.babylonjs.com/inspector/babylon.inspector.bundle.js'; That worked. Thanks @Deltakosh Quote Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2018 Share Posted July 17, 2018 Perfect Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.