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.

Make LocalAvatar Invisible During Certain Conditions?

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!


  • MikeFMikeF Posts: 998
    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
  • ajfunk327ajfunk327 Posts: 2
    @MikeF I'll give that a shot! Thank you! Looks like it might be in DefaultHandMaterialManager...
Sign In or Register to comment.