Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
MrFlo666's avatar
MrFlo666
Explorer
6 years ago

Emission does not work on Quest

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 !