Base class for scriptable object singletons that survive Unity serialization. More...
Static Public Member Functions | |
static T | Get () |
static T | Create () |
Creates a non-singleton instance of T that will not survive unity serialization. More... | |
Protected Member Functions | |
virtual void | Initialize () |
Can be overriden to perform initialization. More... | |
Base class for scriptable object singletons that survive Unity serialization.
These do not persist when Unity closes. It's not safe to access these until Unity deserialization is finished. T should be the class that inherits this.
T | The most derived type |
T | : | ScriptableObject |
|
static |
Creates a non-singleton instance of T that will not survive unity serialization.
Can be used for testing.
|
static |
|
protectedvirtual |
Can be overriden to perform initialization.