AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.SingleInstance< T > Class Template Reference

A simplified version of the Singleton class which doesn't depend on the Instance being set in Awake More...

Inheritance diagram for HoloToolkit.Unity.SingleInstance< T >:

Protected Member Functions

virtual void OnDestroy ()
 Called by Unity when destroying a MonoBehaviour. Scripts that extend SingleInstance should be sure to call base.OnDestroy() to ensure the underlying static _Instance reference is properly cleaned up. More...
 

Properties

static T Instance [get]
 

Detailed Description

A simplified version of the Singleton class which doesn't depend on the Instance being set in Awake

Template Parameters
T
Type Constraints
T :SingleInstance<T> 

Definition at line 12 of file SingleInstance.cs.

Member Function Documentation

§ OnDestroy()

virtual void HoloToolkit.Unity.SingleInstance< T >.OnDestroy ( )
protectedvirtual

Called by Unity when destroying a MonoBehaviour. Scripts that extend SingleInstance should be sure to call base.OnDestroy() to ensure the underlying static _Instance reference is properly cleaned up.

Definition at line 40 of file SingleInstance.cs.

Property Documentation

§ Instance

T HoloToolkit.Unity.SingleInstance< T >.Instance
staticget

Definition at line 16 of file SingleInstance.cs.


The documentation for this class was generated from the following file: