Skip to content

Class: View ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
[ExecuteAlways]
[RequireComponent(typeof(CanvasGroup))]
[RequireComponent(typeof(Canvas))]
public class View : MonoBehaviour

Fields ​

NameDeclarationDescription
blockRaycastWhenShown`[ToggleLeft]
public bool blockRaycastWhenShown`
disableGameObjectWhenHidden`[ToggleLeft]
public bool disableGameObjectWhenHidden`
disablesInGamePlayingInput`[ToggleLeft]
public bool disablesInGamePlayingInput`
fadeTimepublic float fadeTime
hideEffectpublic GameObject hideEffect
ignoreOn`[ShowIf("@showBehavior == View.ShowBehavior.UseState", true)]
public List<string> ignoreOn`
instancespublic static List&lt;View&gt; instances
interactableWhenShown`[ToggleLeft]
public bool interactableWhenShown`
onHidepublic UnityEvent onHide
onShowpublic UnityEvent onShow
showBehaviorpublic View.ShowBehavior showBehavior
showEffectpublic GameObject showEffect
showOn`[ShowIf("@showBehavior == View.ShowBehavior.UseState", true)]
public List<string> showOn`

Properties ​

NameDeclarationDescription
isShowingpublic bool isShowing { get; }

Methods ​

Awake() ​

csharp
protected virtual void Awake()

Hide() ​

Hide this view. ShowBehaviour must be set to Manually.

csharp
public void Hide()

OnDestroy() ​

csharp
protected virtual void OnDestroy()

OnDisable() ​

csharp
protected virtual void OnDisable()

OnEnable() ​

csharp
protected virtual void OnEnable()

OnHide() ​

csharp
protected virtual void OnHide()

OnShow() ​

csharp
protected virtual void OnShow()

Show() ​

Show this view. ShowBehaviour must be set to Manually.

csharp
public void Show()

Start() ​

csharp
protected virtual void Start()

Update() ​

csharp
protected virtual void Update()

Maintained by the Shape of Dreams Modding Community