TransitionPreviewWindow Class

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.Previews
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
EditorWindowTitleAttribute

Properties

Name Value Summary
Icon Texture
The icon image used by this window.
static
InstanceScene TransitionPreviewWindow.Scene
The Animancer.Editor.Previews.TransitionPreviewWindow.Scene of the current Animancer.Editor.Previews.TransitionPreviewWindow instance.
static
PreviewNormalizedTime 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(SerializedProperty) 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(SerializedProperty) bool
Is the `property` being previewed at the moment?
static
IsPreviewingCurrentProperty() 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(SerializedProperty) void
Focusses the Animancer.Editor.Previews.TransitionPreviewWindow or creates one if none exists. Or closes the existing window if it was already previewing the `transitionProperty`.
static
SupportsStageHandling() bool
Returns false.