Summary
[Editor-Only] Draws the Inspector GUI for an
Animancer.ITransitionDetailed.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- PropertyDrawer
- TransitionDrawer
- Derived Types
graph BT
Type-->Base0["TransitionDrawer"]
click Base0 "/animancer-v7-4/api/Animancer.Editor/TransitionDrawer"
Base0-->Base1["PropertyDrawer"]
Type-.->Interface0["IPolymorphic"]
click Interface0 "/animancer-v7-4/api/Animancer/IPolymorphic"
Type["ControllerTransitionDrawer"]
class Type type-node
Derived0["Float2ControllerTransitionDrawer"]-->Type
click Derived0 "/animancer-v7-4/api/Animancer.Editor/Float2ControllerTransitionDrawer"
Derived1["Float1ControllerTransitionDrawer"]-->Type
click Derived1 "/animancer-v7-4/api/Animancer.Editor/Float1ControllerTransitionDrawer"
Derived2["Float3ControllerTransitionDrawer"]-->Type
click Derived2 "/animancer-v7-4/api/Animancer.Editor/Float3ControllerTransitionDrawer"
Syntax
[CustomPropertyDrawer(typeof(ControllerTransition<>), true)]
[CustomPropertyDrawer(typeof(ControllerTransition), true)]
public class ControllerTransitionDrawer : TransitionDrawer, IPolymorphic
Remarks
Implement this interface in a
UnityEditor.PropertyDrawer to indicate that it
should entirely replace the Animancer.Editor.PolymorphicDrawer.
Attributes
| Type | Description |
|---|---|
| CustomPropertyDrawer | |
| CustomPropertyDrawer |
Constructors
| Name | Summary |
|---|---|
| Controller |
Creates a new Animancer.Editor.ControllerTransitionDrawer without any parameters. |
| Controller |
Creates a new Animancer.Editor.ControllerTransitionDrawer and sets the Animancer.Editor.ControllerTransitionDrawer.Parameters. |
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.
Inherited from TransitionDrawer
|
|
| Main |
"." +
Animancer.Editor.TransitionDrawer.MainPropertyName (to avoid creating garbage repeatedly).Inherited from TransitionDrawer
|
|
| Normalized |
_NormalizedStartTime |
The name of the backing field of
ClipTransition.NormalizedStartTime.Inherited from TransitionDrawer
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Context | TransitionDrawer |
The current
Animancer.Editor.TransitionDrawer.DrawerContext.Inherited from TransitionDrawer
static
|
| PreviewButtonStyle | GUIStyle |
The style used for the button that opens the
Animancer.Editor.Previews.TransitionPreviewWindow.Inherited from TransitionDrawer
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| CanCacheInspectorGUI |
bool |
Can't cache because it breaks the
Animancer.Editor.TimelineGUI.Inherited from TransitionDrawer
|
| 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.
Inherited from TransitionDrawer
|
| DoMainPropertyGUI |
void |
Draws the GUI the the target transition's main property.
Inherited from TransitionDrawer
|
| DoParameterGUI |
void |
Draws a dropdown menu to select the name of a parameter in the `controller`.
|
| DoPreviewButtonGUI |
bool |
Draws a small button using the
Animancer.Editor.Previews.TransitionPreviewWindow.Icon.Inherited from TransitionDrawer
static
|
| GetPropertyHeight |
float |
Returns the number of vertical pixels the `property` will occupy when it is drawn.
Inherited from TransitionDrawer
|
| 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.
Inherited from TransitionDrawer
|
| 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.Inherited from TransitionDrawer
|
| 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.
Inherited from TransitionDrawer
static
|