I am working on a light, and have all the textures, normals, roughnesses... AND emission on one material on one l mesh (material is not its own unique res). The mesh is in its own unique scene with an omni directional light.
I am trying to make it so that the lights can be turned off/ on.
I connected a script to the root node of the scene, and have managed to turn off/on the omni directional light by reducing its energy to 0.
However the material emission of the lightbulb still stays and spoils the effect. How do i change the properties of the material, to either turn off emission or reduce its energy to 0?