Hello!
I’m currently using the HLAPI, as well as the SteamVR library. I have two prefabs: one to be spawned to represent a local user; one to be spawned to represent remote users. The first prefab includes the SteamVR component, so it is only appropriate to be spawned with the local user. The second prefab is just for visually representing where the other users are located.
Both prefabs are related in the following way - They both have a script from which they inherit called ‘UserContext’. The sync variables are all in that base script. I presume that as long as all the variables that are sync’d are in the same base class, there should be no issues synchronizing them, even if they are of different sub-types.
Could someone please advise on how to achieve this ‘locality-determined’ prefab spawning with the HLAPI? I’m presuming it requires that I override the OnServerAddPlayer method, but I’ve tried doing so, and it always just spawns out the prefab that I set for the Spawn Info → Player Prefab, or nothing at all, which is not what I want.
Thank you for your time!