Tanoda
GILES.pb_ScriptableObjectSingleton< T > Class Template Reference
Inheritance diagram for GILES.pb_ScriptableObjectSingleton< T >:

Protected Member Functions

virtual void OnEnable ()
 

Properties

static T instance [get]
 
static T nullableInstance [get]
 

Detailed Description

A generic singleton implementation for ScriptableObject classes.

Type Constraints
T :ScriptableObject 

Definition at line 8 of file pb_ScriptableObjectSingleton.cs.

Member Function Documentation

◆ OnEnable()

virtual void GILES.pb_ScriptableObjectSingleton< T >.OnEnable ( )
protectedvirtual

Set _instance if required. If overriding in a child class be sure to call base.OnEnable() before anything elese is executed.

Reimplemented in GILES.pb_ResourceManager.

Definition at line 37 of file pb_ScriptableObjectSingleton.cs.

Property Documentation

◆ instance

T GILES.pb_ScriptableObjectSingleton< T >.instance
staticget

Definition at line 12 of file pb_ScriptableObjectSingleton.cs.

◆ nullableInstance

T GILES.pb_ScriptableObjectSingleton< T >.nullableInstance
staticget

Return the instance if it has been initialized, null otherwise.

Definition at line 28 of file pb_ScriptableObjectSingleton.cs.


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