Animation Action

In this tutorial we will learn how to create and use an Animation Action and its componenets.
Animaton Actions use two actors the Animation Actor and the Interactable Actor.

Animation Prefab Constructor

From the MAGES menu select the option Create Prefab/Animation Action/Animation Actor to create a new instance of an animation actor, as well as Create Prefab/Animation Action/Simple Grabbable Actor to create a new instance of an interactable actor.


The template Actors will appear in the scene. It is recommended to configure these objects for your Animation Action. The Animation Actor has 3 important components;

1. AnimationMovePrefabConstructor 4. End node 5. Start node

  • The AnimationMovePrefabConstructor is used to reference all the needed assets for this action as well as configure its variables.

  • The End Node is used to set the finishing point of the animation. When the Interactable Actor has the same position as the End Node, then the Animation Action will be performed. We will get on that later on the tutorial.

  • The Start Node, similarly with the end node, is the starting point of the animation.

The image below shows the actor and its components.


So, let us begin creating our first animation action blueprint.

Configuration of the interactable Actor

The configuration of the interactable actor is pretty easy and straightforward. | We need to add a mesh in the static mesh component as well as turn off Simulate Physics. This mesh will define the overlap boxes of our interactable actor. | Make sure that Simulate Physics is turned off

Also in the physics component of the static mesh, we need to make sure that it generates overlap events when overlapping with Dynamic objects (the user hands).
Finally we need to save our actor as blueprint class that will be referenced by the AnimationMovePrefabConstructor.

Configuration of the Animation Actor

First of all we need to create a new blueprint class fromt he animation actor template in the scene. | Once we have our blueprint we can open it and select the skeletal mesh component. There we need to reference our skeletal mesh object, that has been animated.

Next we need to reference the animation that we’ll be played while we are moving the interactable actor.
Make sure that looping and playing check boxes are not selected since these will be handled internally from MAGES.

Continuing to the AnimationMovePrefabConstructor component, we have to configure the following variables:

  1. Stay time : How much time the interactable actor needs to stay at its final position in order for the action to perform.

  2. Target Percentage : The percentage of the distance that needs to be traversed in order for the action to be completed (or the stay timer to start counting)

  3. Interactable Actor Class : The blueprint interactable actor class for this action.

  4. Interactable Actor Path : The path to the interactable actor.

  5. Play Animation in Reverse : In case we need the animation to play in reverse as we move the interactable actor from the start node to the end node.

We also need to define the start and end positions of the object. As we move the interactable actor in this spectrum the animation will play from start to finish.
This is defined by the transform of the strat node and end node components.
In the following picture we’ve highlighted with blue cube the starting transform (left) and end transform (right) in our example.
We need to define where this actor will be spawned. Drag and drop it in the scene and after placing it in its correct transform, we select the transform saver from its components and click the Save Transform button.
Finally, we click edit blueprint and select Apply Instance Changes to Blueprint

Creating the Animation Action Blueprint

As with all actions we need to create its blueprint class. We right click in the content browser, select blueprint class and select to inherti from BPAnimationAction.


Below you can see our example animation action, which requires to blueprint nodes: | 1) Set Animation Prefab, where we reference the Animation Actor Blueprint. | 2) Set Hologram Prefab, where we reference the assistive Hologram.

Finally, simply save the blueprint and reference it from the scenegraph blueprint and we can test our animation action.