The LookAt
property specifies the GameObject
that the citizen should focus on. This is particularly useful in scenarios such as cutscenes where you want the character to direct their gaze towards a specific object or character in the scene.
The LookAt
property specifies the GameObject
that the citizen should focus on. This is particularly useful in scenarios such as cutscenes where you want the character to direct their gaze towards a specific object or character in the scene.
To use the LookAt
property, assign it a GameObject
that you want the citizen to look at. Ensure that the LookAtEnabled
property is set to true
to activate the look-at behavior.
// Assuming 'citizenAnimationHelper' is an instance of CitizenAnimationHelper // Enable the look-at feature citizenAnimationHelper.LookAtEnabled = true; // Set the GameObject to look at citizenAnimationHelper.LookAt = targetGameObject;