InControl API Reference
SingletonMonoBehavior< TComponent > Class Template Reference
Inheritance diagram for SingletonMonoBehavior< TComponent >:

Protected Member Functions

virtual void Awake ()
 
virtual void OnDestroy ()
 

Properties

static TComponent Instance [get]
 
bool EnforceSingleton [get]
 Returns true if the object is NOT the singleton instance and should exit early from doing any redundant work. It will also log a warning if called from another instance in the editor during play mode. More...
 
bool IsTheSingleton [get]
 Returns true if the object is the singleton instance. More...
 
bool IsNotTheSingleton [get]
 Returns true if the object is not the singleton instance. More...
 

Property Documentation

◆ EnforceSingleton

bool EnforceSingleton
getprotected

Returns true if the object is NOT the singleton instance and should exit early from doing any redundant work. It will also log a warning if called from another instance in the editor during play mode.

◆ IsNotTheSingleton

bool IsNotTheSingleton
getprotected

Returns true if the object is not the singleton instance.

◆ IsTheSingleton

bool IsTheSingleton
getprotected

Returns true if the object is the singleton instance.


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