C# Class UVAnimation_Auto, urban-survivors

Inheritance: UVAnimation
显示文件 Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
cols int
pixelsToNextColumnAndRow Vector2
rows int
start Vector2
totalCells int

Public Methods

Method Description
BuildUVAnim ( SpriteRoot, s ) : SPRITE_FRAME[]

Uses the information stored in this class to build a UV animation for the specified sprite.

Clone ( ) : UVAnimation_Auto,
UVAnimation_Auto ( ) : UnityEngine
UVAnimation_Auto ( UVAnimation_Auto, anim ) : UnityEngine

Method Details

BuildUVAnim() public method

Uses the information stored in this class to build a UV animation for the specified sprite.
public BuildUVAnim ( SpriteRoot, s ) : SPRITE_FRAME[]
s SpriteRoot, The sprite for which the animation will be built.
return SPRITE_FRAME[]

Clone() public method

public Clone ( ) : UVAnimation_Auto,
return UVAnimation_Auto,

UVAnimation_Auto() public method

public UVAnimation_Auto ( ) : UnityEngine
return UnityEngine

UVAnimation_Auto() public method

public UVAnimation_Auto ( UVAnimation_Auto, anim ) : UnityEngine
anim UVAnimation_Auto,
return UnityEngine

Property Details

cols public_oe property

The number of columns in the animation.
public int cols
return int

pixelsToNextColumnAndRow public_oe property

The number of pixels from the left edge of one sprite frame to the left edge of the next one, and the number of pixels from the top of one sprite frame to the top of the one in the next row. You may also want to think of this as the size (width and height) of each animation cell.
public Vector2 pixelsToNextColumnAndRow
return Vector2

rows public_oe property

The number of rows in the animation.
public int rows
return int

start public_oe property

The pixel coordinates of the lower-left corner of the first frame in the animation sequence.
public Vector2 start
return Vector2

totalCells public_oe property

The total number of frames (cells) of animation.
public int totalCells
return int