Forum Discussion
jormaje
5 years agoExplorer
SkinnedMeshRenderer material from OVRHand prefab is overwritten every frame
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?
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?
1 Reply
- jormajeExplorerOk 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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device