VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR_ControllerComponent.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 
5 namespace AVR.Core {
6  /// <summary>
7  /// AVR_Component specifically attatched to an AVR_Controller. Needs to have an AVR_Controller on this gameObject or one of its parents.
8  /// </summary>
9  [AVR.Core.Attributes.DocumentationUrl("class_a_v_r_1_1_core_1_1_a_v_r___controller_component.html")]
11  {
12  public AVR_Controller controller { private set; get; }
13 
14  protected override void Awake()
15  {
16  controller = GetComponentInParent<AVR_Controller>();
17  if(!controller) {
18  AVR_DevConsole.cerror("AVR_ControllerComponent does not have an AVR_Controller in on itself or one of its parents!", this);
19  }
20  base.Awake();
21  }
22  }
23 }
Represents a VR controller. Provides functionality for spacial tracking and haptic feedback...
Sets the documentation html file inside of Packages/com.avr.core/Documentation/html of a given class...
AVR_Component specifically attatched to an AVR_Controller. Needs to have an AVR_Controller on this ga...
Base class for all arc-vr components. A component is typically a Monobehaviour that represents a virt...