Class View
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
View
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
disableGameObjectWhenHidden
Declaration
[ToggleLeft]
public bool disableGameObjectWhenHidden
Field Value
Declaration
[ToggleLeft]
public bool disablesInGamePlayingInput
Field Value
fadeTime
Declaration
Field Value
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
onHide
Declaration
Field Value
| Type |
Description |
| UnityEngine.Events.UnityEvent |
|
onShow
Declaration
Field Value
| Type |
Description |
| UnityEngine.Events.UnityEvent |
|
showBehavior
Declaration
public View.ShowBehavior showBehavior
Field Value
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
Methods
Awake()
Declaration
protected virtual void Awake()
Hide()
Hide this view. ShowBehaviour must be set to Manually.
Declaration
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
Start()
Declaration
protected virtual void Start()
Update()
Declaration
protected virtual void Update()
Extension Methods