Summary
[Editor-Only] Draws the Inspector GUI for an
Animancer.ITransition.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- PropertyDrawer
- Derived Types
graph BT
Type-->Base0["PropertyDrawer"]
Type-.->Interface0["IPolymorphic"]
click Interface0 "/animancer/api/Animancer/IPolymorphic"
Type["TransitionDrawer"]
class Type type-node
Derived0["ControllerTransitionDrawer"]-->Type
click Derived0 "/animancer/api/Animancer.Editor/ControllerTransitionDrawer"
Derived1["DirectionalClipTransitionDrawer"]-->Type
click Derived1 "/animancer/api/Animancer.Editor/DirectionalClipTransitionDrawer"
Derived2["PlayableAssetTransitionDrawer"]-->Type
click Derived2 "/animancer/api/Animancer.Editor/PlayableAssetTransitionDrawer"
Derived3["ManualMixerTransitionDrawer"]-->Type
click Derived3 "/animancer/api/Animancer.Editor/ManualMixerTransitionDrawer"
Derived4["ClipTransitionDrawer"]-->Type
click Derived4 "/animancer/api/Animancer.Editor/ClipTransitionDrawer"
Derived5["TransitionAssetReferenceDrawer"]-->Type
click Derived5 "/animancer/api/Animancer.Editor/TransitionAssetReferenceDrawer"
Syntax
[CustomPropertyDrawer(typeof(ITransition), true)]
[CustomPropertyDrawer(typeof(TransitionAssetBase), true)]
public class TransitionDrawer : PropertyDrawer, IPolymorphic
Attributes
| Type | Description |
|---|---|
| CustomPropertyDrawer | |
| CustomPropertyDrawer |
Constructors
| Name | Summary |
|---|---|
| TransitionDrawer |
Creates a new Animancer.Editor.TransitionDrawer. |
| TransitionDrawer |
Creates a new Animancer.Editor.TransitionDrawer and sets the Animancer.Editor.TransitionDrawer.MainPropertyName. |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| MainPropertyName |
If set, the field with this name will be drawn on the header line
with the foldout arrow instead of in its regular place.
|
|
| Main |
"." +
Animancer.Editor.TransitionDrawer.MainPropertyName (to avoid creating garbage repeatedly). |
|
| Normalized |
_NormalizedStartTime |
The name of the backing field of
ClipTransition.NormalizedStartTime.static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Context | TransitionDrawer |
The current
Animancer.Editor.TransitionDrawer.DrawerContext.static
|
| PreviewButtonStyle | GUIStyle |
The style used for the button that opens the
Animancer.Editor.Previews.TransitionPreviewWindow.static
|
Methods
| Name | Value | Summary |
|---|---|---|
| DoChildPropertyGUI |
void |
Draws the `property` GUI in relation to the `rootProperty` which was passed into
Animancer.Editor.TransitionDrawer.OnGUI(UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent).
|
| DoHeaderGUI |
void |
Draws the root property of a transition with an optional main property on the same line.
|
| DoMainPropertyGUI |
void |
Draws the GUI the the target transition's main property.
|
| DoPreviewButtonGUI |
bool |
Draws a small button using the
Animancer.Editor.Previews.TransitionPreviewWindow.Icon.static
|
| GetPropertyHeight |
float |
Returns the number of vertical pixels the `property` will occupy when it is drawn.
|
| InitializeMode |
void |
If the
Animancer.Editor.TransitionDrawer._Mode is Animancer.Editor.TransitionDrawer.Mode.Uninitialized, this method determines how it should start
based on the number of properties in the `serializedObject`. If the only serialized field is an
Animancer.ITransition then it should start expanded.
|
| OnGUI |
void |
Draws the root `property` GUI and calls
Animancer.Editor.TransitionDrawer.DoChildPropertyGUI(UnityEngine.Rect@,UnityEditor.SerializedProperty,UnityEditor.SerializedProperty,UnityEngine.GUIContent) for each of its children. |
| TryDoStartTimeField |
bool |
If the `property` is a "Start Time" field, this method draws it as well as the "End Time" below it and
returns true.
static
|