juanje89J
Normal2y ago
22 replies
juanje89

Non-vr spectator

Hi guys,

I'm trying to develop a VR application and would like to include a scene for non-vr users, but I cannot seem to manage it.

My VR scene has a RealTimeAvatarManager who instantiates the VR player successfully.

What I did for my other non-vr scene is to duplicate the VR scene (keeping the same name for the room), but removing all VR elements (XR Interaction Setup and the RealtimeAvatarManager). What I did is to add a SpectatorManager on the same gameobject as the Realtime one, that instantiates a different prefab (no RealtimeAvatar this time).

Is this the way to do it? I tried to "simulate" the AR Spectator example in the documentation, however, I get an error in the spectator scene whenever the VR client connects (RealtimeAvatar failed to register with RealtimeAvatarManager component. Was this avatar prefab instantiated by RealtimeAvatarManager?), though I can see both players in both apps.

Thanks!
Was this page helpful?