C# Class GUIHelpers, tf_client

Exibir arquivo Open project: wids-eria/tf_client Class Usage Examples

Public Methods

Method Description
CompareAnchor ( GUIAnchor, a, GUIAnchor, b ) : bool
CopySkin ( GUISkin source ) : GUISkin

Return a copy of source skin

GUIToWorldPosition ( Vector2 v ) : Vector3
GetFontSizeFromName ( Font f ) : int

Get the size of a font, assuming it is indicated at the end of the font's name (e.g., Font - 32)

MouseToGUIPosition ( Vector3 v ) : Vector3

Remaps GUI to mouse position and vice versa

MouseToWorldCoord ( ) : Vector3
OnePixelInWorld ( Camera camera, float depth ) : float

Returns the height of one pixel at depth in frustum as world space distance

WorldToGUIPosition ( Vector3 v ) : Vector2

Method Details

CompareAnchor() public static method

public static CompareAnchor ( GUIAnchor, a, GUIAnchor, b ) : bool
a GUIAnchor,
b GUIAnchor,
return bool

CopySkin() public static method

Return a copy of source skin
public static CopySkin ( GUISkin source ) : GUISkin
source UnityEngine.GUISkin /// A ///
return UnityEngine.GUISkin

GUIToWorldPosition() public static method

public static GUIToWorldPosition ( Vector2 v ) : Vector3
v Vector2
return Vector3

GetFontSizeFromName() public static method

Get the size of a font, assuming it is indicated at the end of the font's name (e.g., Font - 32)
public static GetFontSizeFromName ( Font f ) : int
f Font /// A ///
return int

MouseToGUIPosition() public static method

Remaps GUI to mouse position and vice versa
public static MouseToGUIPosition ( Vector3 v ) : Vector3
v Vector3 /// A ///
return Vector3

MouseToWorldCoord() public static method

public static MouseToWorldCoord ( ) : Vector3
return Vector3

OnePixelInWorld() public static method

Returns the height of one pixel at depth in frustum as world space distance
public static OnePixelInWorld ( Camera camera, float depth ) : float
camera Camera /// A ///
depth float /// A ///
return float

WorldToGUIPosition() public static method

public static WorldToGUIPosition ( Vector3 v ) : Vector2
v Vector3
return Vector2