VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Static Private Attributes | List of all members
AVR.Core.AVR_SingletonComponent< T > Class Template Reference

Combination of AVR_Component with a singleton. More...

Inheritance diagram for AVR.Core.AVR_SingletonComponent< T >:
AVR.Core.AVR_Component AVR.Core.AVR_Behaviour AVR.Core.AVR_PlayerRig

Public Member Functions

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

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from AVR.Core.AVR_Component
virtual void Start ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Properties

static T Instance [get, set]
 

Private Member Functions

void SetInstance ()
 

Static Private Attributes

static T _Instance
 

Additional Inherited Members

- Public Attributes inherited from AVR.Core.AVR_Component
UnityEngine.Events.UnityEvent onAwake
 Events called when this component awakes. More...
 
UnityEngine.Events.UnityEvent onStart
 Events called when this component starts. More...
 
UnityEngine.Events.UnityEvent onEnable
 Events called when this component is enabled. More...
 
UnityEngine.Events.UnityEvent onDisable
 Events called when this component is disabled. More...
 
- 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

Combination of AVR_Component with a singleton.

Template Parameters
TType of the Singleton. Should correspond to the class deriving from this. Example: class Example : AVR_SingletonComponent<Example>
Type Constraints
T :MonoBehaviour 

Definition at line 10 of file AVR_SingletonComponent.cs.