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 |
void |
Draws the ruler GUI and handles input events for the specified `context`.
static
|
GetFadeOutEnd |
float |
Calculates the end time of the fade out (in seconds).
static
|
GetStartTime |
float |
Calculates the start time of the transition (in seconds).
static
|
NormalizedToSeconds |
float |
Converts a normalized time value to a number of seconds.
|
PixelsToSeconds |
float |
Converts a horizontal pixel position along the ruler to a number of seconds.
|
SecondsToNormalized |
float |
Converts a number of seconds to a normalized time value.
|
SecondsToPixels |
float |
Converts a number of seconds to a horizontal pixel position along the ruler.
|
SnapToFrameRate |
void |
Snaps the `seconds` value to the nearest multiple of the
UnityEngine.AnimationClip.frameRate . |