C# Class UnityEditor.TimeArea

Inheritance: ZoomableArea
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
DrawLine ( Vector2 lhs, Vector2 rhs ) : void
FrameToPixel ( float i, float frameRate, Rect rect, Rect theShownArea ) : float
InitStyles ( ) : void

Method Details

BrowseRuler() public method

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
return TimeRulerDragMode

BrowseRuler() public method

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
return TimeRulerDragMode

DrawMajorTicks() public method

public DrawMajorTicks ( Rect position, float frameRate ) : void
position UnityEngine.Rect
frameRate float
return void

DrawVerticalLine() public static method

public static DrawVerticalLine ( float x, float minY, float maxY, Color color ) : void
x float
minY float
maxY float
color Color
return void

DrawVerticalLineFast() public static method

public static DrawVerticalLineFast ( float x, float minY, float maxY, Color color ) : void
x float
minY float
maxY float
color Color
return void

FormatTime() public method

public FormatTime ( float time, float frameRate, TimeFormat timeFormat ) : string
time float
frameRate float
timeFormat TimeFormat
return string

FormatValue() public method

public FormatValue ( float value ) : string
value float
return string

FrameToPixel() public method

public FrameToPixel ( float i, float frameRate, Rect rect ) : float
i float
frameRate float
rect UnityEngine.Rect
return float

SetTickMarkerRanges() public method

public SetTickMarkerRanges ( ) : void
return void

SnapTimeToWholeFPS() public method

public SnapTimeToWholeFPS ( float time, float frameRate ) : float
time float
frameRate float
return float

TimeArea() public method

public TimeArea ( bool minimalGUI ) : System
minimalGUI bool
return System

TimeField() public method

public TimeField ( Rect rect, int id, float time, float frameRate, TimeFormat timeFormat ) : float
rect UnityEngine.Rect
id int
time float
frameRate float
timeFormat TimeFormat
return float

TimeRuler() public method

public TimeRuler ( Rect position, float frameRate ) : void
position UnityEngine.Rect
frameRate float
return void

TimeRuler() public method

public TimeRuler ( Rect position, float frameRate, bool labels, bool useEntireHeight, float alpha ) : void
position UnityEngine.Rect
frameRate float
labels bool
useEntireHeight bool
alpha float
return void

TimeRuler() public method

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
return void

ValueField() public method

public ValueField ( Rect rect, int id, float value ) : float
rect UnityEngine.Rect
id int
value float
return float