cancel
Showing results for 
Search instead for 
Did you mean: 

Make LocalAvatar Invisible During Certain Conditions?

ajfunk327
Honored Guest
Pretty much as the title says. I would like the make the hand avatars invisible if certain conditions are met. I can't really find much on this (the color changing stuff was only so helpful), and don't know where to start. Any ideas/tips? I don't want the object destroyed, only invisible. I'm using Unity 2018.2.21f1 and the project is for the Oculus Rift. Thank you in advanced!
2 REPLIES 2

MikeF
Trustee
I cant remember what script it is specifically, but each avatar component has its renderer enabled every update cycle. What ive done in the past is track down that code and encapsulate it with a bool, then when you want control over the renderers you can flip that bool, disable the renderers and carry on

ajfunk327
Honored Guest
@MikeF I'll give that a shot! Thank you! Looks like it might be in DefaultHandMaterialManager...