Class ComponentSingleton<T>
Creates a singleton.
Namespace: UnityEngine.ResourceManagement.Util
Syntax
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 |
---|---|
DestroySingleton() | Destroys the singleton. |
GetGameObjectName() | Retrieves the name of the object. |