Getting Started
This guide shows how to quickly set up and use the Animation Trigger Zones plugin entirely in Blueprints โ no C++ required.
Plugin Installation
- Open your Unreal Engine project.
- Go to
Edit
โPlugins
. - Search for Animation Trigger Zones.
- Enable the plugin.
- Restart the editor to apply changes.
Adding a Trigger Zone to Your Level
- Open the desired map in your project.
- Select an existing actor in your level (or create a new empty Actor).
- In the Details panel, click Add Component โ search for
AnimTriggerZone
and add it.
๐ฏ This component handles all animation triggering logic and can be configured via the Details panel.
Assigning Animations
Animations are assigned through ATZEntryPoint components.
- In the same actor, add at least one
ATZEntryPoint
as a child of theAnimTriggerZone
component (via the component hierarchy). - Select the
ATZEntryPoint
. - In the Details panel, add one or more
AnimMontage
assets to theRandom Montage
array.
๐ ATZEntryPoint
must be a child of the AnimTriggerZone
in the component hierarchy. Otherwise, it will not be used at runtime.
๐ Even if you are not using entry-based movement, you must have at least one ATZEntryPoint to provide montages.
Each entry point acts as a container for animations.
๐ก You can add multiple entry points to offer variety or random selection.
Optional: Adding Interaction Points
You can also use ATZInteractionPoint components to trigger additional logic during animations (e.g. grab, push, pick up):
- Add one or more
ATZInteractionPoint
components as children of theAnimTriggerZone
. - Assign a unique
Interaction Tag
in the Details panel. - In your animation, add a
ATZInteraction
notify and set the same tag.
โ ๏ธ Just like entry points, interaction points must be children of the AnimTriggerZone component to function properly.
Configuring the Zone Shape
In the Shape
category of the AnimTriggerZone
:
- Choose the zone shape:
Box
Sphere
Capsule
- Set the corresponding dimensions:
Box Extent
Sphere Radius
Capsule Radius
andCapsule Half Height
Choosing Trigger Mode
In the Animation
category:
- Trigger Mode
Auto
: plays animation automatically when an actor enters the zone.-
Manual
: requires calling the zone manually from Blueprint. -
Repeat Mode
Once
: plays once per actor.Loop While Inside
: keeps playing in a loop while the actor stays inside.Repeat On Reenter
: plays every time the actor enters the zone.
Manual Trigger (Blueprint Example)
If you're using Manual mode:
- Implement the
OnAnimTriggerEnter
event fromATZCharacterInterface
in your character Blueprint. - Store the passed zone reference in a variable.
- On button press, call
Trigger Zone Interact
and passSelf
as the actor.
Testing the Setup
- Click Play to test the level.
- Move your character into the zone:
- In
Auto
mode, animation should start automatically. - In
Manual
mode, callTrigger Zone Interact
from Blueprint to trigger it.
๐ก Enable Enable Debug Draw
in the zone settings to see the zone shape and entry point directions during gameplay.
โก๏ธ Continue to Trigger Zone Settings for detailed parameter explanations.