C# Class GUIHelpers, tf_client

Afficher le fichier Open project: wids-eria/tf_client Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CompareAnchor ( GUIAnchor, a, GUIAnchor, b ) : bool
a GUIAnchor,
b GUIAnchor,
Résultat bool

CopySkin() public static méthode

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

GUIToWorldPosition() public static méthode

public static GUIToWorldPosition ( Vector2 v ) : Vector3
v Vector2
Résultat Vector3

GetFontSizeFromName() public static méthode

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 ///
Résultat int

MouseToGUIPosition() public static méthode

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

MouseToWorldCoord() public static méthode

public static MouseToWorldCoord ( ) : Vector3
Résultat Vector3

OnePixelInWorld() public static méthode

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 ///
Résultat float

WorldToGUIPosition() public static méthode

public static WorldToGUIPosition ( Vector3 v ) : Vector2
v Vector3
Résultat Vector2