IMPORTANT:

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible: https://developer.oculus.com/quest-pitch/

For additional information and context, please see "Submitting Your App to the Oculus Quest Store".
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

SkinnedMeshRenderer material from OVRHand prefab is overwritten every frame

jormajejormaje Posts: 11
NerveGear
I want to change the main material from the Skinned Mesh Renderer component (OVRHand prefab).
In Unity Editor this change remains but in build it only remains for 1 frame and it's replaced by the initial material on the next frame.

Is it possible to change hand material in realtime?
Is this a known issue?

Comments

  • jormajejormaje Posts: 11
    NerveGear
    Ok I found a solution by turning the private variable _originalMaterial from OVRMeshRenderer into a public one.
    It is set on Initialize() and it was being reset every time you are not making the system gesture
Sign In or Register to comment.