Forum Discussion
JannesB
7 months agoHonored Guest
SetActiveView() on SampleAvatarEntity
I'm trying to make an avatar invisible during the game. The avatar has the SampleAvatarEntity component and the Active View is set to ThirdPerson in the Unity Editor, this is how it should be at the start of the game. However, at a certain point I want to set the ActiveView to None from a different script. However when I call
avatarEntity.SetActiveView(ovrAvatar2EntityViewFlags.None);I get the error ' error CS0122: 'OvrAvatarEntity.SetActiveView(CAPI.ovrAvatar2EntityViewFlags)' is inaccessible due to its protection level'
Is there a way to make the avatar invisible from code while using the SampleAvatarEntity?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago