cancel
Showing results for 
Search instead for 
Did you mean: 

Emission does not work on Quest

MrFlo666
Explorer
Hi, i'm a developping on Oculus Quest under Unity. I'm migrating an app from HTC Vive to Quest. Code is somehow similar and used to work well on Vive.

Anyway, I want to highlight some objects. The following code was working well on Vive but nothing happens right now on Quest.
                obj.GetComponent<Renderer>().material.EnableKeyword("_EMISSION");
                obj.GetComponent<Renderer>().material.SetColor("_EmissionColor", obj.GetComponent<Renderer>().material.color);

any suggestion ?

Thanks !
1 REPLY 1