C# Класс UnityEditor.TimeArea

Наследование: ZoomableArea
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BrowseRuler ( Rect position, float &time, float frameRate, bool pickAnywhere, GUIStyle thumbStyle ) : TimeRulerDragMode
BrowseRuler ( Rect position, int id, float &time, float frameRate, bool pickAnywhere, GUIStyle thumbStyle ) : TimeRulerDragMode
DrawMajorTicks ( Rect position, float frameRate ) : void
DrawVerticalLine ( float x, float minY, float maxY, Color color ) : void
DrawVerticalLineFast ( float x, float minY, float maxY, Color color ) : void
FormatTime ( float time, float frameRate, TimeFormat timeFormat ) : string
FormatValue ( float value ) : string
FrameToPixel ( float i, float frameRate, Rect rect ) : float
SetTickMarkerRanges ( ) : void
SnapTimeToWholeFPS ( float time, float frameRate ) : float
TimeArea ( bool minimalGUI ) : System
TimeField ( Rect rect, int id, float time, float frameRate, TimeFormat timeFormat ) : float
TimeRuler ( Rect position, float frameRate ) : void
TimeRuler ( Rect position, float frameRate, bool labels, bool useEntireHeight, float alpha ) : void
TimeRuler ( Rect position, float frameRate, bool labels, bool useEntireHeight, float alpha, TimeFormat timeFormat ) : void
ValueField ( Rect rect, int id, float value ) : float

Приватные методы

Метод Описание
DrawLine ( Vector2 lhs, Vector2 rhs ) : void
FrameToPixel ( float i, float frameRate, Rect rect, Rect theShownArea ) : float
InitStyles ( ) : void

Описание методов

BrowseRuler() публичный Метод

public BrowseRuler ( Rect position, float &time, float frameRate, bool pickAnywhere, GUIStyle thumbStyle ) : TimeRulerDragMode
position UnityEngine.Rect
time float
frameRate float
pickAnywhere bool
thumbStyle UnityEngine.GUIStyle
Результат TimeRulerDragMode

BrowseRuler() публичный Метод

public BrowseRuler ( Rect position, int id, float &time, float frameRate, bool pickAnywhere, GUIStyle thumbStyle ) : TimeRulerDragMode
position UnityEngine.Rect
id int
time float
frameRate float
pickAnywhere bool
thumbStyle UnityEngine.GUIStyle
Результат TimeRulerDragMode

DrawMajorTicks() публичный Метод

public DrawMajorTicks ( Rect position, float frameRate ) : void
position UnityEngine.Rect
frameRate float
Результат void

DrawVerticalLine() публичный статический Метод

public static DrawVerticalLine ( float x, float minY, float maxY, Color color ) : void
x float
minY float
maxY float
color Color
Результат void

DrawVerticalLineFast() публичный статический Метод

public static DrawVerticalLineFast ( float x, float minY, float maxY, Color color ) : void
x float
minY float
maxY float
color Color
Результат void

FormatTime() публичный Метод

public FormatTime ( float time, float frameRate, TimeFormat timeFormat ) : string
time float
frameRate float
timeFormat TimeFormat
Результат string

FormatValue() публичный Метод

public FormatValue ( float value ) : string
value float
Результат string

FrameToPixel() публичный Метод

public FrameToPixel ( float i, float frameRate, Rect rect ) : float
i float
frameRate float
rect UnityEngine.Rect
Результат float

SetTickMarkerRanges() публичный Метод

public SetTickMarkerRanges ( ) : void
Результат void

SnapTimeToWholeFPS() публичный Метод

public SnapTimeToWholeFPS ( float time, float frameRate ) : float
time float
frameRate float
Результат float

TimeArea() публичный Метод

public TimeArea ( bool minimalGUI ) : System
minimalGUI bool
Результат System

TimeField() публичный Метод

public TimeField ( Rect rect, int id, float time, float frameRate, TimeFormat timeFormat ) : float
rect UnityEngine.Rect
id int
time float
frameRate float
timeFormat TimeFormat
Результат float

TimeRuler() публичный Метод

public TimeRuler ( Rect position, float frameRate ) : void
position UnityEngine.Rect
frameRate float
Результат void

TimeRuler() публичный Метод

public TimeRuler ( Rect position, float frameRate, bool labels, bool useEntireHeight, float alpha ) : void
position UnityEngine.Rect
frameRate float
labels bool
useEntireHeight bool
alpha float
Результат void

TimeRuler() публичный Метод

public TimeRuler ( Rect position, float frameRate, bool labels, bool useEntireHeight, float alpha, TimeFormat timeFormat ) : void
position UnityEngine.Rect
frameRate float
labels bool
useEntireHeight bool
alpha float
timeFormat TimeFormat
Результат void

ValueField() публичный Метод

public ValueField ( Rect rect, int id, float value ) : float
rect UnityEngine.Rect
id int
value float
Результат float