Animate

Inherits from ViewAnimation

Used by: ListItem Button ComboBoxItem Row TabHeader

Description

Animates view fields.

View Fields

NameTypeDescription
AutoResetboolAuto reset animation.
Boolean indicating if the animation automatically should be reset when completed.
AutoReverseboolAuto reverse animation.
Boolean indicating if animation automatically should be reversed when completed.
BaseDirectorystringBase directory.
Specifies the base directory to be used by the view and its children. The base directory is used when loading resources such as sprites, fonts, etc.
BasedOnstringBased on style.
Used in style definition to specify which style it's based on.
DurationfloatDuration of animation.
The duration of the animation.
EasingFunctionEasingFunctionTypeAnimation easing function
Easing function to be used when interpolating between From and To animation values.

Enum Values
NameDescription
LinearLinear easing function.
QuadraticEaseInQuadratic ease in function.
QuadraticEaseOutQuadratic ease out function.
QuadraticEaseInOutQuadratic ease in and out function.
CubicEaseInCubic ease in function.
CubicEaseOutCubic ease out function.
CubicEaseInOutCubic ease in and out function.
QuarticEaseInQuartic ease in function.
QuarticEaseOutQuartic ease out function.
QuarticEaseInOutQuartic ease in and out function.
QuinticEaseInQuintic ease in function.
QuinticEaseOutQuintic ease out function.
QuinticEaseInOutQuintic ease in and out function.
SineEaseInSine ease in function.
SineEaseOutSine ease out function.
SineEaseInOutSine ease in and out function.
CircularEaseInCircular ease in function.
CircularEaseOutCircular ease out function.
CircularEaseInOutCircular ease in and out function.
ExponentialEaseInExpontential ease in function.
ExponentialEaseOutExponential ease out function.
ExponentialEaseInOutExponential ease in and out function.
ElasticEaseInElastic ease in function.
ElasticEaseOutElastic ease out function.
ElasticEaseInOutElastic ease in and out function.
BounceEaseInBounce ease in function.
BounceEaseOutBounce ease out function.
BounceEaseInOutBounce ease in and out function.
BackEaseInBack ease in function.
BackEaseOutBack ease out function.
BackEaseInOutBack ease in and out function.
FieldstringAnimation view field.
Path to the view field that should be animated.
FromobjectFrom animation value.
The starting value to be set when the animation starts.
HideFlags HideFlags Hide flags for the game object.
Bit mask that controls object destruction, saving and visibility in editor.

Enum Values
NameDescription
None
HideInHierarchy
HideInInspector
DontSaveInEditor
NotEditable
DontSaveInBuild
DontUnloadUnusedAsset
DontSave
HideAndDontSave
IdstringThe ID of the view.
Specifies a unique ID for the view. Used to map the view to reference fields on the parent view model. Provides a way to reference the view in data bindings. Is used as selectors in styles.
IsActiveboolIndicates if the view is enabled.
Activates/deactivates the view. If set to false in this or in any parent view, all components are disabled, attached renderers are turned off, etc. Any components attached will no longer have Update() called.
IsDestroyedboolIndicates if the view has been destroyed by GameObject.Destroy().
IsDynamicboolIndicates if the view has been created dynamically.
IsInitializedboolGets or sets bool indicating if the view has been initialized.
IsTemplateboolIndicates if this view is to be used as a template.
A template view is used to create dynamic instances of the view. Used by certain views such as the List and TabPanel.
ItemobjectItem data.
Provides a mechanism to bind to dynamic list data. The item is set, e.g. by the List view on the child views it generates for its dynamic list data. The Item points to the list item data the view is associated with.
Position Vector3 Position of the view.
The local position of the view in relation to the layout parent view transform.
PropagateChildLayoutChangesboolIndicates if the view propagates child layout changes.
Boolean indicating if view propagates child layout changes. Generally set to true whenever a view adjusts its size to child layout changes.
ReverseSpeedfloatAnimation reverse speed.
The speed the animation should have when run in reverse (percentage of original speed).
Rotation Quaternion Rotation of the view.
The local rotation of the view in relation to the layout parent view transform. Stored as a Quaternion but specified in XUML as euler angles.
Scale Vector3 Scale of the view.
The scale of the view in relation to the layout parent view transform.
StartOffsetfloatAnimation start offset.
Indicates a delay in starting the animation after it is triggered.
StatestringView state.
View state name. Determines state values to be applied to the view. All views start out in the "Default" state and when the state changes the values associated with that state are applied to the view.
StylestringThe style of the view.
Used as selector by the styles. Specifies the name of the style that is to be applied to the view and any children that explicitly inherits its style. The style is applied when the view is created (usually in the editor as the XUML is processed).
ThemestringThe theme of the view.
Specifies the name of the theme that is applied to the view and its children. The theme determines which set of styles are to be considered when applying matching styles to the view.
ToobjectTo animation value.
The end value to be interpolated to during animation.
UnitSizeVector3 Unit size.
Specifies the user-defined unit size to be used by the view and its children. Used when element size is specified in user-defined units to convert it into pixels.

View Actions

NameAction DataDescription
AnimationStartednoneAnimation started.
Triggered when the animation has started.
AnimationReversednoneAnimation reversed.
Triggered when the animation is reversed.
AnimationCompletednoneAnimation completed.
Triggered when the animation is completed.
AnimationStoppednoneAnimation stopped.
Triggered when the animation is stopped.
AnimationPausednoneAnimation paused.
Triggered when the animation has paused.
AnimationResumednoneAnimation resumed.
Triggered when the animation resumes playing.
CancelnoneCancel view action.
Triggered by the EventSystem when a cancel event occurs.
DeselectnoneDeselect view action.
Triggered by the EventSystem when another view is selected.
DropnoneDrop view action.
Triggered by the EventSystem when the view accepts a drop.
MovenoneMove view action.
Triggered by the EventSystem when a move event occurs.
ClicknoneClick view action.
Triggered by the EventSystem when the user clicks/touches on the view.
BeginDragnoneDrag view action.
Triggered by the EventSystem when the user presses mouse on and starts to drag over the view.
EndDragnoneEnd drag view action.
Triggered by the EventSystem when the user stops dragging mouse over the view.
DragnoneDrag view action.
Triggered by the EventSystem as the user drags the mouse over the view.
InitializePotentialDragnoneInitialize potential drag view action.
Triggered by the EventSystem as the user initiates a potential drag over the view.
MouseDownnoneMouse down view action.
Triggered by the EventSystem when the mouse/touch presses down over the view.
MouseEnternoneMouse enter view action.
Triggered by the EventSystem when the mouse enters the view.
MouseExitnoneMouse exit view action.
Triggered by the EventSystem when the mouse exits the view.
MouseUpnoneMouse up view action.
Triggered by the EventSystem when the mouse/thouch releases over the view.
ScrollnoneScroll view action.
Triggered by the EventSystem when the user scrolls when the view is selected.
SelectnoneSelect view action.
Triggered by the EventSystem when the view is selected.
SubmitnoneSubmit view action.
Triggered by the EventSystem when the user submits while view is selected.
UpdateSelectednoneUpdate selected view action.
Triggered by the EventSystem when the object associated with this EventTrigger is updated.
ActivatednoneActivated view action.
Triggered every time the view is activated. Also triggered once the view is intialized if it starts out activated.
DeactivatednoneDeactivated view action.
Triggered every time the view is deactivated. Also triggered once the view is intialized if it starts out deactivated.





















Join the Announcement List

Be notified when new themes, views, tutorials and updates are available