Cube
On this page we will describe and explain the Cube example that ships with Animate. The cube example demonstrates how you can use Animate to create animations that modify the transform of an actor, e.g. to be used in level or environment design.
You can find the blueprint at Blueprints/Examples/Cube/BP_AnimateCube
in the plugin content folder. Double-click it to open it.
:::note You can create a child blueprint of this class to quickly create a new actor with the same logic. :::
Components
The blueprints consists of the mesh we want to control, and three pairs of Value Source + Value Interpreter
. One for location, rotation and one for scale.
Variables
In the variables section you can find the curve vectors and curve configurations used in this example.
Construction Script
The Construction Script does three things for each pair of Value Source + Value Interpreter
.
We tell the Value Interpreter
which mesh it should modify, then tell the Value Interpreter
which Value Source
to listen to and finally configure the Value Source
with our curves.
Value Interpreter
The Location
, Rotation
and Scale
interpreter components are all very similar.
We just set up the Curve Value Updated
event to set the location based on the current curve data.
The target actor is optional in interpreter components. If you'd like to update an array of actors or implement any custom behaviour you're free to do so!
Result
Last updated