Skip to content

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

GameObject

Find and rank scene objects as gameplay targets.

Transform

Measure targets and flip full hierarchies to face them.

TransformList

Work with groups of target Transforms.

SpriteRenderer

Flip only the visible sprite to face gameplay targets.

Aim

Convert targeting data into usable aim and shooting points.

Example

To build a simple enemy targeting setup:

  1. Use Game Object Find Closest to find the nearest player or threat.
  2. Use a measurement action to get angle or distance to that target.
  3. Use Raycast Get Aim Point if you need a stable world point for aiming.
  4. Use a flip or orientation action so the enemy faces the selected target.