VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | List of all members
AVR.Net.AVR_PlayerSpawn Class Reference

Used for convenient spawning of players with respective network prefabs. More...

Inheritance diagram for AVR.Net.AVR_PlayerSpawn:
AVR.Core.AVR_Behaviour

Public Member Functions

override void OnNetworkSpawn ()
 
- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 

Public Attributes

int max_players = 4
 
List< Transform > spawnLocations = new List<Transform>()
 
bool disconnectClientIfFailed = true
 
NetworkObject prefab
 

Protected Member Functions

virtual NetworkObject getPrefab ()
 
virtual void spawnServerRpc (ulong clientId)
 

Private Member Functions

void OnDrawGizmos ()
 

Additional Inherited Members

- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 

Detailed Description

Used for convenient spawning of players with respective network prefabs.

Definition at line 13 of file AVR_PlayerSpawn.cs.