Description
The EyeSource
property of the CitizenAnimationHelper
class specifies the GameObject
that represents the position of the character's eyes. This is used to determine where the character is looking from, which can be important for animations and interactions that depend on the character's line of sight.
Usage
To use the EyeSource
property, assign it a GameObject
that represents the eyes of the character. This can be useful for setting up animations or interactions that require knowledge of where the character is looking.
Example
// Example of setting the EyeSource property
// Assume 'character' is an instance of a class that contains a CitizenAnimationHelper
CitizenAnimationHelper animationHelper = character.GetComponent<CitizenAnimationHelper>();
// Assume 'eyeObject' is a GameObject representing the character's eyes
GameObject eyeObject = new GameObject("EyeObject");
// Set the EyeSource to the eyeObject
animationHelper.EyeSource = eyeObject;