C# Class exSprite, ex2d-v1

Inheritance: exSpriteBase
显示文件 Open project: exdev/ex2d-v1 Class Usage Examples

Public Properties

Property Type Description
textureGUID string
trimTexture bool
trimUV Rect

Public Methods

Method Description
CalculateVertex ( float &_x, float &_y, float _widthScaled, float _heightScaled, float _col, float _row, float _offsetX, float _offsetY ) : void
Clear ( ) : void
Commit ( ) : void
ForceUpdateMesh ( Mesh _mesh ) : void
GetCurrentElement ( ) : exAtlas.Element,
HFlip ( ) : void
SetSprite ( exAtlas, _atlas, int _index, bool _changeDefaultAnimSprite = false ) : void
UpdateMesh ( Mesh _mesh ) : void
VFlip ( ) : void

Protected Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CalculateVertex() public method

public CalculateVertex ( float &_x, float &_y, float _widthScaled, float _heightScaled, float _col, float _row, float _offsetX, float _offsetY ) : void
_x float
_y float
_widthScaled float
_heightScaled float
_col float
_row float
_offsetX float
_offsetY float
return void

Clear() public method

public Clear ( ) : void
return void

Commit() public method

public Commit ( ) : void
return void

ForceUpdateMesh() public method

public ForceUpdateMesh ( Mesh _mesh ) : void
_mesh Mesh
return void

GetCurrentElement() public method

public GetCurrentElement ( ) : exAtlas.Element,
return exAtlas.Element,

HFlip() public method

public HFlip ( ) : void
return void

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

SetSprite() public method

public SetSprite ( exAtlas, _atlas, int _index, bool _changeDefaultAnimSprite = false ) : void
_atlas exAtlas,
_index int
_changeDefaultAnimSprite bool
return void

UpdateMesh() public method

public UpdateMesh ( Mesh _mesh ) : void
_mesh Mesh
return void

VFlip() public method

public VFlip ( ) : void
return void

Property Details

textureGUID public_oe property

public string textureGUID
return string

trimTexture public_oe property

public bool trimTexture
return bool

trimUV public_oe property

public Rect trimUV
return Rect