Programmatically change scene setting "transparent canvas"

Is this possible?

If someone could point toward where I can find the setting, programmatically, I would appreciate it.

Hi @3dTim,

If you are talking about editor based project, I think it’s not possible to change it on runtime.

That setting is being set once when the WebGL context is created.

2 Likes

This can only be changed when the device is created. So if you’re using engine only application, you can pass the flag to its constructor. But if you use the Editor application, this is created for you and controlled by the flag in settings.

See the options parameter here in the constructor: GraphicsDevice | PlayCanvas API Reference
in the details this is the alpha parameter.

2 Likes

Thanks, guys