The Selected Loop Animations are triggered when the button is selected (a button is selected when EventSystem currentSelected gameObject is the one that this UIButton component is attached to).
Because these animations are math based, any value change will result in a different animation.
Presets are different configuration sets that result in various animations.
There are two ways of setting up the animation. You can just select a preset, load its values (Load Preset) and either leave them like that or tweak them, or you can select a preset and set it to load at runtime (this will automatically load the preset values at runtime, overriding the settings from the Inspector).
Load selected preset at runtime: loads, at runtime, the animation preset that has the selected preset category and preset name; this will override any values set in the inspector
Preset Category: the selected animation preset category
Preset Name: the selected animation preset name (found in the selected preset category)
You can create new presets with ease, by creating new preset categories and preset names, right from the Inspector.
MOVE LOOP
start delay: start delay for the animation
duration: the duration of the animation
loops: number of loops this animation performs until it stops (-1 = infinite loops)
loop type: type of loops (Restart: each loop cycle restarts from the beginning / Yoyo: the tween moves forward and backwards at alternate cycles)
movement: movement is calculated startAnchoredPosition-movement for min and startAnchoredPosition+movment for max
ease (type): select if the animation should use an Ease or an Animation curve in order to calculate the rate of change of the animation over time
ease: if easeType is set to Ease then this sets the ease of the tween; easing functions specify the rate of change of a parameter over time; to see how default ease curves look, check out easings.net
animation curve: if easeType is set to AnimationCurve, this curve will be used in order to calculate the rate of change of the animation over time
ROTATE LOOP
start delay: start delay for the animation
duration: the duration of the animation
loops: number of loops this animation performs until it stops (-1 = infinite loops)
loop type: type of loops (Restart: each loop cycle restarts from the beginning / Yoyo: the tween moves forward and backwards at alternate cycles)
rotation: rotation is calculated startRotation-rotation for min and startRotation+rotation for max
ease (type): select if the animation should use an Ease or an Animation curve in order to calculate the rate of change of the animation over time
ease: if easeType is set to Ease then this sets the ease of the tween; easing functions specify the rate of change of a parameter over time; to see how default ease curves look, check out easings.net
animation curve: if easeType is set to AnimationCurve, this curve will be used in order to calculate the rate of change of the animation over time
SCALE LOOP
start delay: start delay for the animation
duration: the duration of the animation
loops: number of loops this animation performs until it stops (-1 = infinite loops)
loop type: type of loops (Restart: each loop cycle restarts from the beginning / Yoyo: the tween moves forward and backwards at alternate cycles)
min: the minimum values for the scale factor of the scale loop animation (default: 1)
max: the maximum values for the scale factor of the scale loop animation (default: 1.05)
ease (type): select if the animation should use an Ease or an Animation curve in order to calculate the rate of change of the animation over time
ease: if easeType is set to Ease then this sets the ease of the tween; easing functions specify the rate of change of a parameter over time; to see how default ease curves look, check out easings.net
animation curve: if easeType is set to AnimationCurve, this curve will be used in order to calculate the rate of change of the animation over time
FADE LOOP
start delay: start delay for the animation
duration: the duration of the animation
loops: number of loops this animation performs until it stops (-1 = infinite loops)
loop type: type of loops (Restart: each loop cycle restarts from the beginning / Yoyo: the tween moves forward and backwards at alternate cycles)
min: the minimum alpha value for the fade animation loop (default: 0)
max: the maximum alpha value for the fade animation loop (default: 1)
ease (type): select if the animation should use an Ease or an Animation curve in order to calculate the rate of change of the animation over time
ease: if easeType is set to Ease then this sets the ease of the tween; easing functions specify the rate of change of a parameter over time; to see how default ease curves look, check out easings.net
animation curve: if easeType is set to AnimationCurve, this curve will be used in order to calculate the rate of change of the animation over time
Comments
0 comments
Please sign in to leave a comment.