AnimationWindow
Use the AnimationWindow class to select and edit Animation clips.
Read time 7 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: EditorWindow
- Implements: IHasCustomMenu
[EditorWindowTitle(title = "Animation", useTypeNameAsIconName = true)]public sealed class AnimationWindow : EditorWindow, IHasCustomMenu
Remarks
The Animation window will update when selecting Animation clips in the Project window or game objects with Animation players (such as Animator or Animation) in the Scene hierarchy.
Properties
Property | Description |
|---|---|
| animationClip | The animation clip selected in the Animation window. |
| canPreview | True if Animation window can enable preview mode. False otherwise. (Read Only) |
| canRecord | True if Animation window can enable recording mode. False otherwise. (Read Only) |
| frame | The frame number at which the Animation window playhead is located. |
| playing | This property toggles animation playback in the Animation window. |
| previewing | This property toggles previewing in the Animation window. |
| recording | This property toggles recording in the Animation window. |
| time | The time value at which the Animation window playhead is located. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |