[SOLVED] Update project setting by code

I want to update Rendering option, property Exposure in real-time by code. How I can do it?

Hi @Ivan_Kucher,

You can do it like so:

this.app.scene.exposure = 1.5;
1 Like

Cool, thank you!

The API reference for that is here:

https://developer.playcanvas.com/en/api/pc.Scene.html#exposure

If you mouse over any property in the Settings panel, a tooltip should show up with a link to the API reference:

2 Likes