Skip to main content

Look At

The Look At component automatically orients any 3D object to look at, or face, another 3D object.

interview demo       celebrity

In the Demo Effect section, you will learn how configure a set of microphones to follow the movements of a face, creating an interview effect. Download the following file to get started:

look_at.zip

Add a Look At Component

note

A Look At component can only be applied to a 3D object, or an object with the Transform component. Make sure you have a 3D object available in the Hierarchy panel.

In the Hierarchy panel, select a 3D object and locate its components in the Inspector panel. Click + Add component, go to 3D, and then select Look At.

add look at component

The 3D object with the Look At component can be defined as the source object.

Properties

properties
PropertyDescription
TargetThe 3D object that should be followed or looked at. The target object must also have a Transform component assigned to it.
ModeHow the source object rotates to track the target object.
  • Look At Point (default): The source object rotates on all axes to track the target object.
  • Look At Direction: The source object matches the rotation of the target object. The target object’s position does not affect the source object.
Advanced Settings
  • Direction Aim: The source object’s axis that is aimed at the target object.
  • Direction Up: The face at the top of the source object.
  • World Up: Defines what the Look At component references as “up.”
  • Offset Rotation: The rotation of the source object after the Look At component is applied.

Look At Demo

Download the following file to see how the advanced settings of the Look At component work. The axes have already been defined for you to easily visualize the different manipulations.

look_at.zip

look at demo

Look At Node

In Visual Scripting, you can add the Look At node to achieve a similar look-at result. The Look At node uses the Look At Point mode by default.

Demo Effect: Interview

In this demo, you will create an interview effect by configuring a set of microphones to follow the movements of a face.

demo effect interview

If you haven’t already, download the following file:

look_at.zip

After importing the assets required for this effect, you can see microphone in the Assets panel. This is simply a 3D object, consisting of an arm and microphone, named microphone. Drag and drop microphone from the Assets panel to the Hierarchy panel.

add microphone

In the Hierarchy panel, you can duplicate microphone by right-clicking it and selecting Duplicate. If you want five microphones, you should duplicate microphone four times.

duplicate mic

Make sure each microphone has a Look At component in the Inspector panel. The target object should be set to the Head Tracker object and the mode should be Look At Point. You can also modify the values of the Transform properties to determine how each microphone appears in the scene.

microphone inspector panel

Alternatively, you can move, rotate, and scale each microphone using the gizmo tool in the Scene panel.

adjust microphone

You can customize the skin tone of each hand mesh by modifying its Material property of the Mesh Renderer component. First go to the Hierarchy panel, expand a microphone, and locate its hand mesh. Select the hand mesh and locate the Mesh Renderer component in the Inspector panel. Click the Material field and choose an available material.

change texture skin tone