TimelineGUI Class

Summary

[Editor-Only] Draws a GUI box denoting a period of time.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Interfaces
  • IDisposable
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IDisposable"] Type["TimelineGUI"] class Type type-node

Syntax

public class TimelineGUI : IDisposable

Properties

Name Value Summary
Area Rect
The pixel area in which this Animancer.Editor.TimelineGUI is drawing.
Current TimelineGUI
The currently drawing Animancer.Editor.TimelineGUI (or null if none is drawing).
static
EventIcon Texture
The icon used for events.
static
TickHeight float
The height of the time ticks.

Methods

Name Value Summary
DoGUI(Rect, SerializableEventSequenceDrawer.Context, float) void
Draws the ruler GUI and handles input events for the specified `context`.
static
GetFadeOutEnd(float, float, float) float
Calculates the end time of the fade out (in seconds).
static
GetStartTime(float, float, float) float
Calculates the start time of the transition (in seconds).
static
NormalizedToSeconds(float) float
Converts a normalized time value to a number of seconds.
PixelsToSeconds(float) float
Converts a horizontal pixel position along the ruler to a number of seconds.
SecondsToNormalized(float) float
Converts a number of seconds to a normalized time value.
SecondsToPixels(float) float
Converts a number of seconds to a horizontal pixel position along the ruler.
SnapToFrameRate(SerializableEventSequenceDrawer.Context, float) void
Snaps the `seconds` value to the nearest multiple of the UnityEngine.AnimationClip.frameRate.