Skip to main content
Participant
May 12, 2020

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 !
This topic has been closed for replies.

1 reply

Participant
April 26, 2023