VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.UI.AVR_Canvas.anchor_to_player ( )
inline

Anchors this canvas to the players HMD. Intended for HUD UI elements.

Definition at line 84 of file AVR_Canvas.cs.

85  {
86  this.transform.SetParent(AVR_PlayerRig.Instance.MainCamera.transform, true);
87  AVR_DevConsole.print(gameObject.name + " anchored to player");
88  }