C# Class DW_GUILayout

ファイルを表示 Open project: caffeinatedguy/Limbs Class Usage Examples

Public Properties

Property Type Description
hovered bool
itemHeight float
itemWidth float
scaleFactor float
tooltip string
tooltipActive string
yPos float

Public Methods

Method Description
Box ( string text ) : void
Button ( GUIContent content, float width = 0f ) : bool
Button ( string text, float width = 0f ) : bool
DrawLogo ( Texture2D texture ) : void
IsRuntimePlatformMobile ( ) : bool
Label ( string text, bool autoHeight = false ) : void
Slider ( float value, string text, float min, float max ) : float
Slider ( int value, string text, float min, float max ) : float
Space ( float value ) : void
Toggle ( bool value, string text, bool &changed ) : bool
UpdateScaleDesktop ( float baseHeight ) : void
UpdateScaleMobile ( ) : void

Private Methods

Method Description
CheckTooltipRect ( Rect rect ) : void
GetCurrentRect ( ) : Rect

Method Details

Box() public static method

public static Box ( string text ) : void
text string
return void

Button() public static method

public static Button ( GUIContent content, float width = 0f ) : bool
content GUIContent
width float
return bool

Button() public static method

public static Button ( string text, float width = 0f ) : bool
text string
width float
return bool

DrawLogo() public static method

public static DrawLogo ( Texture2D texture ) : void
texture UnityEngine.Texture2D
return void

IsRuntimePlatformMobile() public static method

public static IsRuntimePlatformMobile ( ) : bool
return bool

Label() public static method

public static Label ( string text, bool autoHeight = false ) : void
text string
autoHeight bool
return void

Slider() public static method

public static Slider ( float value, string text, float min, float max ) : float
value float
text string
min float
max float
return float

Slider() public static method

public static Slider ( int value, string text, float min, float max ) : float
value int
text string
min float
max float
return float

Space() public static method

public static Space ( float value ) : void
value float
return void

Toggle() public static method

public static Toggle ( bool value, string text, bool &changed ) : bool
value bool
text string
changed bool
return bool

UpdateScaleDesktop() public static method

public static UpdateScaleDesktop ( float baseHeight ) : void
baseHeight float
return void

UpdateScaleMobile() public static method

public static UpdateScaleMobile ( ) : void
return void

Property Details

hovered public_oe static_oe property

public static bool hovered
return bool

itemHeight public_oe static_oe property

public static float itemHeight
return float

itemWidth public_oe static_oe property

public static float itemWidth
return float

scaleFactor public_oe static_oe property

public static float scaleFactor
return float

tooltip public_oe static_oe property

public static string tooltip
return string

tooltipActive public_oe static_oe property

public static string tooltipActive
return string

yPos public_oe static_oe property

public static float yPos
return float