Search Results for

    Show / Hide Table of Contents

    Class View

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    View
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    [ExecuteAlways]
    [RequireComponent(typeof(CanvasGroup))]
    [RequireComponent(typeof(Canvas))]
    public class View : MonoBehaviour

    Fields

    blockRaycastWhenShown

    Declaration
    [ToggleLeft]
    public bool blockRaycastWhenShown
    Field Value
    Type Description
    bool

    disableGameObjectWhenHidden

    Declaration
    [ToggleLeft]
    public bool disableGameObjectWhenHidden
    Field Value
    Type Description
    bool

    disablesInGamePlayingInput

    Declaration
    [ToggleLeft]
    public bool disablesInGamePlayingInput
    Field Value
    Type Description
    bool

    fadeTime

    Declaration
    public float fadeTime
    Field Value
    Type Description
    float

    hideEffect

    Declaration
    public GameObject hideEffect
    Field Value
    Type Description
    UnityEngine.GameObject

    ignoreOn

    Declaration
    [ShowIf("@showBehavior == View.ShowBehavior.UseState", true)]
    public List<string> ignoreOn
    Field Value
    Type Description
    System.Collections.Generic.List<T><string>

    instances

    Declaration
    public static List<View> instances
    Field Value
    Type Description
    System.Collections.Generic.List<T><View>

    interactableWhenShown

    Declaration
    [ToggleLeft]
    public bool interactableWhenShown
    Field Value
    Type Description
    bool

    onHide

    Declaration
    public UnityEvent onHide
    Field Value
    Type Description
    UnityEngine.Events.UnityEvent

    onShow

    Declaration
    public UnityEvent onShow
    Field Value
    Type Description
    UnityEngine.Events.UnityEvent

    showBehavior

    Declaration
    public View.ShowBehavior showBehavior
    Field Value
    Type Description
    View.ShowBehavior

    showEffect

    Declaration
    public GameObject showEffect
    Field Value
    Type Description
    UnityEngine.GameObject

    showOn

    Declaration
    [ShowIf("@showBehavior == View.ShowBehavior.UseState", true)]
    public List<string> showOn
    Field Value
    Type Description
    System.Collections.Generic.List<T><string>

    Properties

    isShowing

    Declaration
    public bool isShowing { get; }
    Property Value
    Type Description
    bool

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    Hide()

    Hide this view. ShowBehaviour must be set to Manually.

    Declaration
    public void Hide()

    OnDestroy()

    Declaration
    protected virtual void OnDestroy()

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    OnHide()

    Declaration
    protected virtual void OnHide()

    OnShow()

    Declaration
    protected virtual void OnShow()

    Show()

    Show this view. ShowBehaviour must be set to Manually.

    Declaration
    public void Show()

    Start()

    Declaration
    protected virtual void Start()

    Update()

    Declaration
    protected virtual void Update()

    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