A class in Alta.Singletons, Alta.Utilities.
Base for a component that should exist once. The first one to wake becomes Instance; any later copy destroys itself.
- Listed in Other Alta assemblies
- Inherits or implements
MonoBehaviour
- Derived types
AchievementManager, LandmarkManager, AltaCoroutineHandler, NetworkingProfiler, VivoxManager, AmbienceManager, ApplicationManager, ChunkDisplayTool, AudioManager, FallbackCamera, ImpactSoundManager, LoginManager, MainMenuLogger, MainThreadJobHandler, PlatformDriver, PopupManager, ServerConsoleManager, TerrainInfo, TerrainModificationRegister, VrMainMenu, WipeManager
Constructors
| Member | What it is |
|---|
SingletonBehaviour() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|
static Action<T> InstanceSet | Called with the instance when it is set. |
Properties
| Member | What it is |
|---|
static T Instance { get; protected set; } | The single instance, or null before one has woken. |
Methods
| Member | What it is |
|---|
protected virtual void Awake() | Registers this as Instance, or destroys this component if one already exists. Call the base if you override it. |