Gameplay Targeting
Gameplay Targeting actions help you find useful targets and evaluate where they are in relation to your object.
Use them for common tasks like choosing the nearest enemy, measuring angle and distance, finding a valid aim point, or flipping a character to face a target.
Subcategories
Find and rank scene objects as gameplay targets.
Measure targets and flip full hierarchies to face them.
Work with groups of target Transforms.
Flip only the visible sprite to face gameplay targets.
Convert targeting data into usable aim and shooting points.
Example
To build a simple enemy targeting setup:
- Use Game Object Find Closest to find the nearest player or threat.
- Use a measurement action to get angle or distance to that target.
- Use Raycast Get Aim Point if you need a stable world point for aiming.
- Use a flip or orientation action so the enemy faces the selected target.