Changing game settings from the main menu


#1

Hi!
Please tell me, how you can add an on / off, for example, shadows in the main menu of the game? As I understand it, need to refer to the settings of the game engine, but I don’t know how to do it.


#2

If you have realtime lights, you can disable casting shadows on the light component: https://developer.playcanvas.com/en/api/pc.LightComponent.html#castShadows