SerializableEventSequenceDrawer Class

Summary

[Editor-Only] Draws the Inspector GUI for a Animancer.AnimancerEvent.Sequence.Serializable.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • PropertyDrawer
graph BT Type-->Base0["PropertyDrawer"] Type["SerializableEventSequenceDrawer"] class Type type-node

Syntax

[CustomPropertyDrawer(typeof(Sequence), true)]
public class SerializableEventSequenceDrawer : PropertyDrawer

Attributes

Type Description
CustomPropertyDrawer

Fields

Name Constant Value Summary
Repaint
Animancer.Editor.AnimancerGUI.RepaintEverything
static

Methods

Name Value Summary
AddEvent(SerializableEventSequenceDrawer.Context, float) void
Adds an event to the sequence represented by the given `context`.
static
CanCacheInspectorGUI(SerializedProperty) bool
Can't cache because it breaks the Animancer.Editor.TimelineGUI.
DoAddRemoveEventButtonGUI(Rect, SerializableEventSequenceDrawer.Context) void
Draws a button to add a new event or remove the selected one.
DoCallbackGUI(Rect, SerializableEventSequenceDrawer.Context, int, bool, string) void
Draws the GUI fields for the event at the specified `index`.
static
DoEventGUI(Rect, SerializableEventSequenceDrawer.Context, int, bool) void
Draws the GUI fields for the event at the specified `index`.
DoNameGUI(Rect, SerializableEventSequenceDrawer.Context, int, string) void
Draws the time field for the event at the specified `index`.
static
DoTimeGUI(Rect, SerializableEventSequenceDrawer.Context, int, bool) void
Draws the time field for the event at the specified `index`.
static
DoTimeGUI(Rect, SerializableEventSequenceDrawer.Context, int, bool, string, float, bool) void
Draws the time field for the event at the specified `index`.
static
GetPropertyHeight(SerializedProperty, GUIContent) float
Calculates the number of vertical pixels the `property` will occupy when it is drawn.
OnGUI(Rect, SerializedProperty, GUIContent) void
Draws the GUI for the `property`.
RemoveEvent(SerializableEventSequenceDrawer.Context, int) void
Removes the event at the specified `index`.
static
SyncEventTimeChange(SerializableEventSequenceDrawer.Context, int, float) void
Updates the Animancer.AnimancerEvent.Sequence.Serializable.Events to accomodate a changed event time.
static