C# Class BBGamelib.ccUtils

ファイルを表示 Open project: BigWoodGames/cocos2d-unity

Public Methods

Method Description
CC_DEGREES_TO_RADIANS ( float degree ) : float
CC_INCREMENT_GL_DRAWS ( uint n = 1 ) : void
CC_RADIANS_TO_DEGREE ( float radians ) : float
GUIDrawRect ( Rect position, Color color ) : void
GetChildObject ( GameObject obj, string name ) : GameObject
GetChildObjectRecursively ( GameObject obj, string name ) : GameObject
PixelsToUnits ( Vector2 pixels ) : Vector2
PixelsToUnits ( Vector3 pixels ) : Vector3
PointFromString ( string s ) : Vector2
PointToString ( Vector2 p ) : string
RectFromString ( string s ) : Rect
RectIntersection ( Rect a, Rect b ) : Rect
RectIntersectsRect ( Rect a, Rect b ) : bool
RectToString ( Rect rect ) : string
RectUnion ( Rect a, Rect b ) : Rect
UnitsToPixels ( Vector2 units ) : Vector2
UnitsToPixels ( Vector3 units ) : Vector3
ccNumberOfDraws ( ) : uint

Method Details

CC_DEGREES_TO_RADIANS() public static method

public static CC_DEGREES_TO_RADIANS ( float degree ) : float
degree float
return float

CC_INCREMENT_GL_DRAWS() public static method

public static CC_INCREMENT_GL_DRAWS ( uint n = 1 ) : void
n uint
return void

CC_RADIANS_TO_DEGREE() public static method

public static CC_RADIANS_TO_DEGREE ( float radians ) : float
radians float
return float

GUIDrawRect() public static method

public static GUIDrawRect ( Rect position, Color color ) : void
position UnityEngine.Rect
color Color
return void

GetChildObject() public static method

public static GetChildObject ( GameObject obj, string name ) : GameObject
obj UnityEngine.GameObject
name string
return UnityEngine.GameObject

GetChildObjectRecursively() public static method

public static GetChildObjectRecursively ( GameObject obj, string name ) : GameObject
obj UnityEngine.GameObject
name string
return UnityEngine.GameObject

PixelsToUnits() public static method

public static PixelsToUnits ( Vector2 pixels ) : Vector2
pixels Vector2
return Vector2

PixelsToUnits() public static method

public static PixelsToUnits ( Vector3 pixels ) : Vector3
pixels Vector3
return Vector3

PointFromString() public static method

public static PointFromString ( string s ) : Vector2
s string
return Vector2

PointToString() public static method

public static PointToString ( Vector2 p ) : string
p Vector2
return string

RectFromString() public static method

public static RectFromString ( string s ) : Rect
s string
return UnityEngine.Rect

RectIntersection() public static method

public static RectIntersection ( Rect a, Rect b ) : Rect
a UnityEngine.Rect
b UnityEngine.Rect
return UnityEngine.Rect

RectIntersectsRect() public static method

public static RectIntersectsRect ( Rect a, Rect b ) : bool
a UnityEngine.Rect
b UnityEngine.Rect
return bool

RectToString() public static method

public static RectToString ( Rect rect ) : string
rect UnityEngine.Rect
return string

RectUnion() public static method

public static RectUnion ( Rect a, Rect b ) : Rect
a UnityEngine.Rect
b UnityEngine.Rect
return UnityEngine.Rect

UnitsToPixels() public static method

public static UnitsToPixels ( Vector2 units ) : Vector2
units Vector2
return Vector2

UnitsToPixels() public static method

public static UnitsToPixels ( Vector3 units ) : Vector3
units Vector3
return Vector3

ccNumberOfDraws() public static method

public static ccNumberOfDraws ( ) : uint
return uint