Class ComponentSingleton<T>
Creates a singleton.
Inherited Members
Namespace: UnityEngine .ResourceManagement .Util
Assembly: solution.dll
Syntax
[ExecuteInEditMode]
public abstract class ComponentSingleton<T> : MonoBehaviour where T : ComponentSingleton<T>
Type Parameters
Name | Description |
---|---|
T | The singleton type. |
Properties
Name | Description |
---|---|
Exists | Indicates whether or not there is an existing instance of the singleton. |
Instance | Stores the instance of the singleton. |
Methods
Name | Description |
---|---|
Destroy |
Destroys the singleton. |
Get |
Retrieves the name of the object. |