Table of Contents

Class PreloadedSingleton<T>

Namespace
Coherence
Assembly
Coherence.dll
public abstract class PreloadedSingleton<T> : PreloadedSingleton where T : ScriptableObject

Type Parameters

T
Inheritance
PreloadedSingleton<T>
Derived

Constructors

PreloadedSingleton()

protected PreloadedSingleton()

Properties

Instance

public static T Instance { get; }

Property Value

T

IsActiveInstance

public override bool IsActiveInstance { get; }

Property Value

bool

instance

[Obsolete("Use Instance instead.")]
public static T instance { get; }

Property Value

T

Methods

OnDisable()

protected virtual void OnDisable()

OnEnable()

This method can destroy the object, e.g, when creating a duplicate of the asset.

protected virtual void OnEnable()