đŸŽ¯Look At Target

Designate an object as the global look at target

An object with this component automatically becomes the global target for all Look At behaviors. Most commonly this is applied to the main camera or a player object.

Look At Target is only used by Look At instances using Global Target mode.

Look At Target does not require a Timeflow Object since it does not implement any Timeflow behaviors.

Look At Target Editor

Select the object to view it in the Inspector. There are no other settings for Look At Target.

When the object is the current global target, it displays an ACTIVE badge

Multiple Targets

When viewing an object that is not the active target, it displays a button to make it active and an object field with a reference to the currently active object, as shown below.

The object field cannot be edited, however double-clicking it selects and reveals the object in the hierarchy.

Scripting

It is also possible to set the global target in a script using the following code. See LookAt.cs

LookAt.GlobalTarget = myGameObject;

Last updated