Search Results for

    Show / Hide Table of Contents

    Class SingletonBehaviour<T>

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    SingletonBehaviour<T>
    DevCanvas
    Room_BossArena
    Special_RoomAnnouncer
    UI_BindingWindow
    UI_EmoteWheel
    UI_GamepadTextInput
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviour
    Type Parameters
    Name Description
    T

    Properties

    instance

    If you expect the instance to be null, you MUST USE softInstance in Update loops.
    This will call FindObjectOfType if current instance is null, which can be very expensive.

    Declaration
    public static T instance { get; }
    Property Value
    Type Description
    T

    softInstance

    Declaration
    public static T softInstance { get; }
    Property Value
    Type Description
    T

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    Extension Methods

    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation