<AnimateTextureY>
Animates an object's vertical texture coordinates.
Attributes
Attribute | Description |
from | Initial value |
to | Target value |
interval | Length of animation |
offset | Offset of animation |
mode | Animation mode |
reverse | Reversing animation? |
preview | Preview in editor? |
target | Target coordinates |
mode [string]
Sets the animation mode. Determines how the animated value is calculated. Default is "linear"
Value | Mode |
"linear" | Linear interpolation |
"curve" | Sine curve |
"sqrt" | Square root |
"squared" | Squared |
Example:
mode = "curve"
reverse [bool]
When set to true, the animation will "bounce back" and play backwards during the second half of the animation.
Example:
reverse = "true"
preview [bool]
When set to true, this trait will animate in the Novelty editor. Default is false.
Example:
preview = "true"
target [string]
Target coordinates to animate. Texture, mask or both.
Default value: "texture"
Value | Description |
"texture" | Animate texture |
"mask" | Animate mask |
"both" | Animate texture and mask |
Example:
target = "both"
Example
<Traits>
<AnimateTextureY interval="2" from="0" to="1" />
</Traits>