VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.Core.AVR_Ray.Awake ( )
inlineprotectedvirtual

Reimplemented from AVR.Core.AVR_Component.

Reimplemented in AVR.UI.AVR_UIRay.

Definition at line 68 of file AVR_Ray.cs.

69  {
70  base.Awake();
71 
72  if(!lr) lr = GetComponent<LineRenderer>();
73  if(!lr) {
74  AVR_DevConsole.error("AVR_Ray object "+gameObject.name+" has no LineRenderer attatched!");
75  }
76  if(start_hidden) hide(); else show();
77  UpdateRay();
78  }
bool start_hidden
Hide or show the ray immediately on Awake()
Definition: AVR_Ray.cs:41
LineRenderer lr
Definition: AVR_Ray.cs:50
virtual void UpdateRay()
Updates the ray. Called from Monobehaviour.Update()
Definition: AVR_Ray.cs:85
virtual void hide()
Hides the ray. A ray is not updated while hidden.
Definition: AVR_Ray.cs:173
virtual void show()
Shows the ray. A ray is not updated while hidden.
Definition: AVR_Ray.cs:178