Skip to main content
Version: 2.1.1

Haply::Inverse::Unity::Utilities::Singleton

A generic singleton class for MonoBehaviour. More...

Inherits from MonoBehaviour

Public Functions​

Name
boolExists()

Protected Functions​

Name
virtual voidAwake()
virtual voidOnEnable()
virtual voidOnDisable()
virtual voidOnDestroy()
virtual voidOnApplicationQuit()
virtual voidUpdate()

Public Properties​

Name
TInstance
Gets the instance of the singleton class.

Detailed Description​

template <T >
class Haply::Inverse::Unity::Utilities::Singleton;

A generic singleton class for MonoBehaviour.

Template Parameters:

  • T Type of the singleton class.

Public Functions Documentation​

function Exists​

static bool Exists()

Protected Functions Documentation​

function Awake​

virtual void Awake()

Reimplemented by: Haply::Inverse::Unity::DeviceMapper::Awake, Haply::Inverse::Unity::EventDispatcher::Awake

function OnEnable​

virtual void OnEnable()

Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnEnable

function OnDisable​

virtual void OnDisable()

Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnDisable

function OnDestroy​

virtual void OnDestroy()

Reimplemented by: Haply::Inverse::Unity::DeviceMapper::OnDestroy

function OnApplicationQuit​

virtual void OnApplicationQuit()

function Update​

virtual void Update()

Reimplemented by: Haply::Inverse::Unity::DeviceMapper::Update, Haply::Inverse::Unity::EventDispatcher::Update

Public Property Documentation​

property Instance​

static T Instance;

Gets the instance of the singleton class.