Popout windows - debug layer

Hey All,

Noticed that if you create a popout window and try to use the debug layer it will not work.

https://playground.babylonjs.com/#20OAV9#11839 (PLEASE HIT RUN AFTER LOADING PAGE - INITIALLY GIVES ERROR)

Probably not a huge deal for most cases, but for my Editor I am using popout windows to be able to edit multiple prefabs etc. Makes it difficult to find out what is going on in the babylon sense! Also I was thinking for final game it could be handy for multiple windows to have viewers etc.

Thanks,
Jack

I think you miss the .css definitions, but I don’t know how to load them in the popup…

cc @RaananW in case he has some tips for you.

This is nothing we support really (because the css rules are added to either the inspector popup OR the context window), but you could do this:

Spotlight Not Blocked By Mesh | Babylon.js Playground (babylonjs.com)

2 Likes

Marked as solved, just to note the visuals are not 100% the same as the main window but it works well enough for my purposes!

Thanks for the assist :slight_smile:

1 Like