C# 클래스 GUIHelpers, tf_client

파일 보기 프로젝트 열기: wids-eria/tf_client 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CompareAnchor() 공개 정적인 메소드

public static CompareAnchor ( GUIAnchor, a, GUIAnchor, b ) : bool
a GUIAnchor,
b GUIAnchor,
리턴 bool

CopySkin() 공개 정적인 메소드

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

GUIToWorldPosition() 공개 정적인 메소드

public static GUIToWorldPosition ( Vector2 v ) : Vector3
v Vector2
리턴 Vector3

GetFontSizeFromName() 공개 정적인 메소드

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 ///
리턴 int

MouseToGUIPosition() 공개 정적인 메소드

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

MouseToWorldCoord() 공개 정적인 메소드

public static MouseToWorldCoord ( ) : Vector3
리턴 Vector3

OnePixelInWorld() 공개 정적인 메소드

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 ///
리턴 float

WorldToGUIPosition() 공개 정적인 메소드

public static WorldToGUIPosition ( Vector3 v ) : Vector2
v Vector3
리턴 Vector2