C# Class VRPlayer

Singleton representing the local VR player/user, with methods for getting the player's hands, head, tracking origin, and guesses for various properties.
Inheritance: MonoBehaviour
Afficher le fichier Open project: adamhleslie/MorningRitual-GlobalGameJam2016 Class Usage Examples

Méthodes publiques

Свойство Type Description
allowToggleTo2D bool

Méthodes publiques

Méthode Description
Awake ( ) : void
GetHand ( int i ) : VRHand,

Get the i-th active VRHand.

OnDrawGizmos ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
Teleport ( Transform destination ) : void

Private Methods

Méthode Description
ActivateRig ( GameObject rig ) : void

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

GetHand() public méthode

Get the i-th active VRHand.
public GetHand ( int i ) : VRHand,
i int Zero-based index of the active VRHand to get
Résultat VRHand,

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Teleport() public méthode

public Teleport ( Transform destination ) : void
destination Transform
Résultat void

Property Details

allowToggleTo2D public_oe property

public bool allowToggleTo2D
Résultat bool