Class ViewElement
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ViewElement
Inherited Members
UnityEngine.MonoBehaviour.IsInvoking()
UnityEngine.MonoBehaviour.CancelInvoke()
UnityEngine.MonoBehaviour.Invoke(System.String, System.Single)
UnityEngine.MonoBehaviour.InvokeRepeating(System.String, System.Single, System.Single)
UnityEngine.MonoBehaviour.CancelInvoke(System.String)
UnityEngine.MonoBehaviour.IsInvoking(System.String)
UnityEngine.MonoBehaviour.StartCoroutine(System.String)
UnityEngine.MonoBehaviour.StartCoroutine(System.String, System.Object)
UnityEngine.MonoBehaviour.StartCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StartCoroutine_Auto(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StopCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StopCoroutine(UnityEngine.Coroutine)
UnityEngine.MonoBehaviour.StopCoroutine(System.String)
UnityEngine.MonoBehaviour.StopAllCoroutines()
UnityEngine.MonoBehaviour.print(System.Object)
UnityEngine.MonoBehaviour.useGUILayout
UnityEngine.MonoBehaviour.runInEditMode
UnityEngine.Behaviour.enabled
UnityEngine.Behaviour.isActiveAndEnabled
UnityEngine.Component.GetComponent(System.Type)
UnityEngine.Component.GetComponent<T>()
UnityEngine.Component.TryGetComponent(System.Type, UnityEngine.Component)
UnityEngine.Component.TryGetComponent<T>(T)
UnityEngine.Component.GetComponent(System.String)
UnityEngine.Component.GetComponentInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentInChildren(System.Type)
UnityEngine.Component.GetComponentInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentInChildren<T>()
UnityEngine.Component.GetComponentsInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInChildren(System.Type)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInChildren<T>()
UnityEngine.Component.GetComponentsInChildren<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentInParent(System.Type)
UnityEngine.Component.GetComponentInParent<T>()
UnityEngine.Component.GetComponentsInParent(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInParent(System.Type)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInParent<T>()
UnityEngine.Component.GetComponents(System.Type)
UnityEngine.Component.GetComponents(System.Type, System.Collections.Generic.List<UnityEngine.Component>)
UnityEngine.Component.GetComponents<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponents<T>()
UnityEngine.Component.CompareTag(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object)
UnityEngine.Component.SendMessageUpwards(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, System.Object)
UnityEngine.Component.SendMessage(System.String)
UnityEngine.Component.SendMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object)
UnityEngine.Component.BroadcastMessage(System.String)
UnityEngine.Component.BroadcastMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.transform
UnityEngine.Component.gameObject
UnityEngine.Component.tag
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: MacacaGames.ViewSystem
Assembly: Macaca.ViewSystem.dll
Syntax
[DisallowMultipleComponent]
public class ViewElement : MonoBehaviour
Fields
| Improve this Doc View SourceAnimationStateName_In
Declaration
public string AnimationStateName_In
Field Value
Type | Description |
---|---|
System.String |
AnimationStateName_Loop
Declaration
public string AnimationStateName_Loop
Field Value
Type | Description |
---|---|
System.String |
AnimationStateName_Out
Declaration
public string AnimationStateName_Out
Field Value
Type | Description |
---|---|
System.String |
animatorTransitionType
Declaration
public ViewElement.AnimatorTransitionType animatorTransitionType
Field Value
Type | Description |
---|---|
ViewElement.AnimatorTransitionType |
canvasInEase
Declaration
public EaseStyle canvasInEase
Field Value
Type | Description |
---|---|
EaseStyle |
canvasInTime
Declaration
public float canvasInTime
Field Value
Type | Description |
---|---|
System.Single |
canvasOutEase
Declaration
public EaseStyle canvasOutEase
Field Value
Type | Description |
---|---|
EaseStyle |
canvasOutTime
Declaration
public float canvasOutTime
Field Value
Type | Description |
---|---|
System.Single |
DestroyIfNoPool
Declaration
[NonSerialized]
public bool DestroyIfNoPool
Field Value
Type | Description |
---|---|
System.Boolean |
DisableGameObjectOnComplete
Declaration
public bool DisableGameObjectOnComplete
Field Value
Type | Description |
---|---|
System.Boolean |
isSkipOutAnimation
Declaration
public bool isSkipOutAnimation
Field Value
Type | Description |
---|---|
System.Boolean |
IsUnique
Declaration
public bool IsUnique
Field Value
Type | Description |
---|---|
System.Boolean |
lifeCyclesObjects
Declaration
protected List<IViewElementLifeCycle> lifeCyclesObjects
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<IViewElementLifeCycle> |
needPool
Declaration
protected bool needPool
Field Value
Type | Description |
---|---|
System.Boolean |
OnBeforeRecoveryToPool
A callback to user do something before recovery
Declaration
public Action OnBeforeRecoveryToPool
Field Value
Type | Description |
---|---|
System.Action |
OnLeaveHandle
Declaration
public ViewElementEvent OnLeaveHandle
Field Value
Type | Description |
---|---|
ViewElementEvent |
OnShowHandle
Declaration
public ViewElementEvent OnShowHandle
Field Value
Type | Description |
---|---|
ViewElementEvent |
parentViewElementGroup
Declaration
public ViewElementGroup parentViewElementGroup
Field Value
Type | Description |
---|---|
ViewElementGroup |
PoolKey
Declaration
[NonSerialized]
public int PoolKey
Field Value
Type | Description |
---|---|
System.Int32 |
runtimePool
Declaration
public static ViewElementRuntimePool runtimePool
Field Value
Type | Description |
---|---|
ViewElementRuntimePool |
sortingOrder
Declaration
public int sortingOrder
Field Value
Type | Description |
---|---|
System.Int32 |
transition
Declaration
public ViewElement.TransitionType transition
Field Value
Type | Description |
---|---|
ViewElement.TransitionType |
viewController
Declaration
public static ViewControllerBase viewController
Field Value
Type | Description |
---|---|
ViewControllerBase |
viewElementPool
Declaration
public static ViewElementPool viewElementPool
Field Value
Type | Description |
---|---|
ViewElementPool |
Properties
| Improve this Doc View Sourceanimator
Declaration
public Animator animator { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Animator |
canvasGroup
Declaration
public CanvasGroup canvasGroup { get; }
Property Value
Type | Description |
---|---|
UnityEngine.CanvasGroup |
IsShowed
Declaration
public bool IsShowed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
rectTransform
Declaration
public RectTransform rectTransform { get; }
Property Value
Type | Description |
---|---|
UnityEngine.RectTransform |
runtimeOverride
Declaration
public ViewRuntimeOverride runtimeOverride { get; }
Property Value
Type | Description |
---|---|
ViewRuntimeOverride |
selfViewElementGroup
Declaration
public ViewElementGroup selfViewElementGroup { get; }
Property Value
Type | Description |
---|---|
ViewElementGroup |
Methods
| Improve this Doc View SourceApplyEvent(IEnumerable<ViewElementEventData>)
Declaration
public void ApplyEvent(IEnumerable<ViewElementEventData> eventDatas)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ViewElementEventData> | eventDatas |
ApplyNavigation(IEnumerable<ViewElementNavigationData>)
Declaration
public void ApplyNavigation(IEnumerable<ViewElementNavigationData> navigationDatas)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ViewElementNavigationData> | navigationDatas |
ApplyOverrides(IEnumerable<ViewElementPropertyOverrideData>)
Declaration
public void ApplyOverrides(IEnumerable<ViewElementPropertyOverrideData> overrideDatas)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ViewElementPropertyOverrideData> | overrideDatas |
ApplyRectTransform(ViewElementTransform)
Declaration
public void ApplyRectTransform(ViewElementTransform viewElementTransform)
Parameters
Type | Name | Description |
---|---|---|
ViewElementTransform | viewElementTransform |
ChangePage(Boolean, Transform, ViewElementTransform, Int32, Single, Single, Boolean, Boolean)
Declaration
public virtual void ChangePage(bool show, Transform parent, ViewElementTransform rectTransformData, int sortingOrder = 0, float TweenTime = 0F, float delayIn = 0F, bool ignoreTransition = false, bool reshowIfSamePage = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | show | |
UnityEngine.Transform | parent | |
ViewElementTransform | rectTransformData | |
System.Int32 | sortingOrder | |
System.Single | TweenTime | |
System.Single | delayIn | |
System.Boolean | ignoreTransition | |
System.Boolean | reshowIfSamePage |
GetInDuration()
Declaration
public virtual float GetInDuration()
Returns
Type | Description |
---|---|
System.Single |
GetOutDuration()
Declaration
public virtual float GetOutDuration()
Returns
Type | Description |
---|---|
System.Single |
GetSelectables()
Declaration
public virtual Selectable[] GetSelectables()
Returns
Type | Description |
---|---|
UnityEngine.UI.Selectable[] |
OnChangedPage()
Declaration
public void OnChangedPage()
OnChangePageRunner(Boolean, Transform, ViewElementTransform, Single, Single, Boolean, Boolean)
Declaration
public IEnumerator OnChangePageRunner(bool show, Transform parent, ViewElementTransform rectTransformData, float TweenTime, float delayIn, bool ignoreTransition, bool reshowIfSamePage)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | show | |
UnityEngine.Transform | parent | |
ViewElementTransform | rectTransformData | |
System.Single | TweenTime | |
System.Single | delayIn | |
System.Boolean | ignoreTransition | |
System.Boolean | reshowIfSamePage |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
OnLeave(Boolean, Boolean)
Declaration
public virtual void OnLeave(bool NeedPool = true, bool ignoreTransition = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | NeedPool | |
System.Boolean | ignoreTransition |
OnLeaveAnimationFinish()
Declaration
public void OnLeaveAnimationFinish()
OnLeaveRunner(Boolean, Boolean)
Declaration
public IEnumerator OnLeaveRunner(bool NeedPool = true, bool ignoreTransition = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | NeedPool | |
System.Boolean | ignoreTransition |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
OnShow(Boolean)
Declaration
public virtual void OnShow(bool manual = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | manual |
OnShowRunner(Boolean)
Declaration
public IEnumerator OnShowRunner(bool manual)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | manual |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
RegisterLifeCycleObject(IViewElementLifeCycle)
Declaration
public void RegisterLifeCycleObject(IViewElementLifeCycle obj)
Parameters
Type | Name | Description |
---|---|---|
IViewElementLifeCycle | obj |
Reshow()
Declaration
public void Reshow()
RevertOverrides()
Declaration
public void RevertOverrides()
Setup()
Declaration
public virtual void Setup()
UnRegisterLifeCycleObject(IViewElementLifeCycle)
Declaration
public void UnRegisterLifeCycleObject(IViewElementLifeCycle obj)
Parameters
Type | Name | Description |
---|---|---|
IViewElementLifeCycle | obj |