Avoid hiding divs in fullscreen?

I’ve just created a very rough fullscreen button with a div (I think that is easier to deal with divs than with regular Babylon buttons)

But when you go fullscreen it becomes hidden.

Is there any chance to avoid this behaviour? Thank you in advance.

You would have to make a container and apply your own fullscreen api code to that, rather than using the built-in fullscreen.

<div> // fullscreen on this
    <canvas>
    <div></div> // this will display in fullscreen
</div>
2 Likes

Thank you I’ll provide a working sample for future readers:

2 Likes