EventSequenceDrawer Class

Summary

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

Syntax

[CustomPropertyDrawer(typeof(EventSequence), true)]
public sealed class EventSequenceDrawer : PropertyDrawer

Attributes

Type Description
CustomPropertyDrawer

Methods

Name Value Summary
AddEvent(EventSequenceDrawer.Context, float) void
Adds an event to the sequence represented by the given `context`.
static
CanCacheInspectorGUI(SerializedProperty) bool
Can't cache because the Animancer.Editor.EventSequenceDrawer.TimeRuler doesn't work properly.
DoAddRemoveEventButtonGUI(Rect, EventSequenceDrawer.Context) void
Draws a button to add a new event or remove the selected one.
DoCallbackGUI(Rect, EventSequenceDrawer.Context, int, bool, string) void
Draws the GUI fields for the event at the specified `index`.
static
DoEventGUI(Rect, EventSequenceDrawer.Context, int, bool, bool) void
Draws the GUI fields for the event at the specified `index`.
static
DoNameGUI(Rect, EventSequenceDrawer.Context, int, string) void
Draws the time field for the event at the specified `index`.
static
DoTimeGUI(Rect, EventSequenceDrawer.Context, int, bool) void
Draws the time field for the event at the specified `index`.
static
DoTimeGUI(Rect, EventSequenceDrawer.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(EventSequenceDrawer.Context, int) void
Removes the event at the specified `index`.
static