C# Class RagePixelSprite, UnityGameSkeleton

Inheritance: MonoBehaviour, IRagePixel
Mostra file Open project: DesiQuintans/UnityGameSkeleton Class Usage Examples

Public Properties

Property Type Description
ZLayer int
accuratePosition Vector3
animationMaxIndex int
animationMinIndex int
animationMode AnimationMode
currentCellKey int
currentRowKey int
flipHorizontal bool
flipVertical bool
grid9Bottom int
grid9Left int
grid9Right int
grid9Top int
meshIsDirty bool
mode Mode,
nextAnimFrame float
pivotMode PivotMode
pixelSizeX int
pixelSizeY int
playAnimation bool
spriteSheet RagePixelSpriteSheet,
tintColor Color
vertexColorsAreDirty bool

Public Methods

Method Description
Awake ( ) : void
CheckAnimRangesOnPlay ( ) : void
GenerateMesh ( Mesh mesh ) : void
GetCurrentCell ( ) : RagePixelCell,
GetCurrentCellIndex ( ) : int
GetCurrentRow ( ) : RagePixelRow,
GetCurrentRowIndex ( ) : int
GetPivotOffset ( ) : Vector3
GetRect ( ) : Rect
OnDestroy ( ) : void
OnDrawGizmosSelected ( ) : void
OnEnable ( ) : void
PlayAnimation ( ) : void
PlayAnimation ( bool forceRestart ) : void
PlayAnimation ( bool forceRestart, int rangeMinIndex, int rangeMaxIndex ) : void
PlayAnimation ( bool forceRestart, int animMode, int rangeMinIndex, int rangeMaxIndex ) : void
PlayNamedAnimation ( string name ) : void
PlayNamedAnimation ( string name, bool forceRestart ) : void
PlayNamedAnimation ( string name, bool forceRestart, float delayFirstFrame ) : void
SetHorizontalFlip ( bool value ) : void
SetSize ( int height, int width ) : void
SetSprite ( string name ) : void
SetSprite ( string name, int frameIndex ) : void
SetTintColor ( Color color ) : void
SetVerticalFlip ( bool value ) : void
SnapToIntegerPosition ( ) : void
SnapToIntegerPosition ( float divider ) : void
SnapToScale ( ) : void
Start ( ) : void
StopAnimation ( ) : void
Update ( ) : void
checkKeyIntegrity ( ) : void
getCurrentRowName ( ) : string
isPlaying ( ) : bool
refreshMesh ( ) : void
selectCell ( int index ) : void
selectRow ( int index ) : void
shiftCell ( int amount, bool loop ) : void
shiftRow ( int amount ) : void

Private Methods

Method Description
DrawRectangle ( Rect rect, Color color ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

CheckAnimRangesOnPlay() public method

public CheckAnimRangesOnPlay ( ) : void
return void

GenerateMesh() public method

public GenerateMesh ( Mesh mesh ) : void
mesh Mesh
return void

GetCurrentCell() public method

public GetCurrentCell ( ) : RagePixelCell,
return RagePixelCell,

GetCurrentCellIndex() public method

public GetCurrentCellIndex ( ) : int
return int

GetCurrentRow() public method

public GetCurrentRow ( ) : RagePixelRow,
return RagePixelRow,

GetCurrentRowIndex() public method

public GetCurrentRowIndex ( ) : int
return int

GetPivotOffset() public method

public GetPivotOffset ( ) : Vector3
return Vector3

GetRect() public method

public GetRect ( ) : Rect
return Rect

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDrawGizmosSelected() public method

public OnDrawGizmosSelected ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PlayAnimation() public method

public PlayAnimation ( ) : void
return void

PlayAnimation() public method

public PlayAnimation ( bool forceRestart ) : void
forceRestart bool
return void

PlayAnimation() public method

public PlayAnimation ( bool forceRestart, int rangeMinIndex, int rangeMaxIndex ) : void
forceRestart bool
rangeMinIndex int
rangeMaxIndex int
return void

PlayAnimation() public method

public PlayAnimation ( bool forceRestart, int animMode, int rangeMinIndex, int rangeMaxIndex ) : void
forceRestart bool
animMode int
rangeMinIndex int
rangeMaxIndex int
return void

PlayNamedAnimation() public method

public PlayNamedAnimation ( string name ) : void
name string
return void

PlayNamedAnimation() public method

public PlayNamedAnimation ( string name, bool forceRestart ) : void
name string
forceRestart bool
return void

PlayNamedAnimation() public method

public PlayNamedAnimation ( string name, bool forceRestart, float delayFirstFrame ) : void
name string
forceRestart bool
delayFirstFrame float
return void

SetHorizontalFlip() public method

public SetHorizontalFlip ( bool value ) : void
value bool
return void

SetSize() public method

public SetSize ( int height, int width ) : void
height int
width int
return void

SetSprite() public method

public SetSprite ( string name ) : void
name string
return void

SetSprite() public method

public SetSprite ( string name, int frameIndex ) : void
name string
frameIndex int
return void

SetTintColor() public method

public SetTintColor ( Color color ) : void
color Color
return void

SetVerticalFlip() public method

public SetVerticalFlip ( bool value ) : void
value bool
return void

SnapToIntegerPosition() public method

public SnapToIntegerPosition ( ) : void
return void

SnapToIntegerPosition() public method

public SnapToIntegerPosition ( float divider ) : void
divider float
return void

SnapToScale() public method

public SnapToScale ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StopAnimation() public method

public StopAnimation ( ) : void
return void

Update() public method

public Update ( ) : void
return void

checkKeyIntegrity() public method

public checkKeyIntegrity ( ) : void
return void

getCurrentRowName() public method

public getCurrentRowName ( ) : string
return string

isPlaying() public method

public isPlaying ( ) : bool
return bool

refreshMesh() public method

public refreshMesh ( ) : void
return void

selectCell() public method

public selectCell ( int index ) : void
index int
return void

selectRow() public method

public selectRow ( int index ) : void
index int
return void

shiftCell() public method

public shiftCell ( int amount, bool loop ) : void
amount int
loop bool
return void

shiftRow() public method

public shiftRow ( int amount ) : void
amount int
return void

Property Details

ZLayer public_oe property

public int ZLayer
return int

accuratePosition public_oe property

public Vector3 accuratePosition
return Vector3

animationMaxIndex public_oe property

public int animationMaxIndex
return int

animationMinIndex public_oe property

public int animationMinIndex
return int

animationMode public_oe property

public AnimationMode animationMode
return AnimationMode

currentCellKey public_oe property

public int currentCellKey
return int

currentRowKey public_oe property

public int currentRowKey
return int

flipHorizontal public_oe property

public bool flipHorizontal
return bool

flipVertical public_oe property

public bool flipVertical
return bool

grid9Bottom public_oe property

public int grid9Bottom
return int

grid9Left public_oe property

public int grid9Left
return int

grid9Right public_oe property

public int grid9Right
return int

grid9Top public_oe property

public int grid9Top
return int

meshIsDirty public_oe property

public bool meshIsDirty
return bool

mode public_oe property

public Mode, mode
return Mode,

nextAnimFrame public_oe property

public float nextAnimFrame
return float

pivotMode public_oe property

public PivotMode pivotMode
return PivotMode

pixelSizeX public_oe property

public int pixelSizeX
return int

pixelSizeY public_oe property

public int pixelSizeY
return int

playAnimation public_oe property

public bool playAnimation
return bool

spriteSheet public_oe property

public RagePixelSpriteSheet, spriteSheet
return RagePixelSpriteSheet,

tintColor public_oe property

public Color tintColor
return Color

vertexColorsAreDirty public_oe property

public bool vertexColorsAreDirty
return bool