Summary
[Editor-Only]
An
UnityEditor.EditorWindow
which allows the user to preview animation transitions separately from the rest
of the scene in Edit Mode or Play Mode.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- SceneView
graph BT
Type-->Base0["SceneView"]
Type["TransitionPreviewWindow"]
class Type type-node
Syntax
[HelpURL(Strings.DocsURLs.TransitionPreviews)]
[EditorWindowTitle]
public class TransitionPreviewWindow : SceneView
Remarks
Documentation: Previews
Attributes
Type | Description |
---|---|
HelpURLAttribute | |
Editor |
Properties
Name | Value | Summary |
---|---|---|
Icon | Texture |
The icon image used by this window.
static
|
InstanceScene | Transition |
The
Animancer.Editor.TransitionPreviewWindow.Scene of the current Animancer.Editor.TransitionPreviewWindow instance.static
|
Preview |
float |
The
Animancer.AnimancerState.NormalizedTime of the current transition. Can only be set if the property
being previewed matches the current Animancer.Editor.TransitionDrawer.Context .
static
|
Transition | ITransitionDetailed |
The
Animancer.ITransitionDetailed currently being previewed.static
|
TransitionProperty | SerializedProperty |
The
UnityEditor.SerializedProperty currently being previewed.static
|
Methods
Name | Value | Summary |
---|---|---|
CanBePreviewed |
bool |
Indicates whether the `property` is able to be previewed by this system.
static
|
GetCurrentState |
AnimancerState |
Returns the
Animancer.AnimancerState of the current transition if the property being previewed matches
the Animancer.Editor.TransitionDrawer.Context . Otherwise returns null.
static
|
IsPreviewing |
bool |
Is the `property` being previewed at the moment?
static
|
Is |
bool |
Is the current
Animancer.Editor.TransitionDrawer.DrawerContext.Property being previewed at the moment?
static
|
OnDestroy |
void |
Cleans up this window.
|
OnDisable |
void | |
OnEnable |
void | |
OnSceneGUI |
void | |
OpenOrClose |
void |
Focusses the
Animancer.Editor.TransitionPreviewWindow or creates one if none exists.
Or closes the existing window if it was already previewing the `transitionProperty`.
static
|
Supports |
bool |
Returns false.
|