Description
The Name
property of the AnimationSequence
class provides the name of the currently playing animation sequence. This property is useful for identifying which animation is currently active, especially when dealing with multiple animations in a sequence.
Usage
To access the Name
property, you need to have an instance of the AnimationSequence
class. This property is read-only and returns a string
representing the name of the animation sequence.
Example
// Example of accessing the Name property of an AnimationSequence instance
AnimationSequence animationSequence = GetCurrentAnimationSequence();
string currentAnimationName = animationSequence.Name;
// Output the name of the current animation sequence
// Note: Replace 'GetCurrentAnimationSequence' with the actual method to retrieve your animation sequence instance
Debug.Log($"Current Animation: {currentAnimationName}");