cancel
Showing results for 
Search instead for 
Did you mean: 

SetActiveView() on SampleAvatarEntity

JannesB
Honored Guest

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?

0 REPLIES 0