Skip to content

Markers

A Marker is a component that is used by Characters as destination points. It allows you to define a target position and rotation so the Character is at the correct location before doing something else, like opening a door.

Marker Gizmo in Scene

A Marker has a yellow arrow-shaped gizmo that indicates the direction the Character will face after moving towards it.

Marker Inspector

Optionally, a Marker can specify a Stop Distance threshold from which a Character is considered to have reached its destination.

By default it's zero, but if the destination is very crowded, there might not be enough space for a character to be at the exact marker's position. Having some error threshold allows Characters to more or less reach their destination without getting stuck or pushing other characters around.

The Type field allows you to determine how the Marker works. By default it's set to Direction, which forces the character to end at the same position and rotation as the arrow-shaped gizmo in the scene.

Another available mode is Inwards which tells the character to move to the closest point around a circle and rotate towards its center. This is especially useful when you want the character to pick up an item and you don't care from which angle it is picked up.