Property | Type | Description | |
---|---|---|---|
anchor | SpriteAnchor, | ||
animations | SKSpriteAnimationState>.Dictionary | ||
currentAnimation | SKSpriteAnimation, | ||
desiredSize | Vector2 | ||
isDoubleDensityScreen | bool | ||
meshFilter | |||
pixelPerfectHDSize | Vector2 | ||
renderer | Renderer | ||
scale | Vector3 | ||
sourceImageName | string | ||
spriteSheet | SKSpriteSheet, | ||
tintColor | Color |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
createSprite ( SKSpriteSheet, sheet, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
createSprite ( string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
createSprite ( string sheetName, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
faceBackwards ( ) : void | ||
faceForwards ( ) : void | ||
flipHorizontally ( ) : void | ||
generateMesh ( ) : void | ||
playAnimation ( string name ) : void | ||
preloadAnimations ( ) : void | ||
rotate ( float degrees ) : void | ||
setColor ( Color tint ) : void | ||
setUVs ( Rect uvRect ) : void | ||
startAnimation ( string name ) : void |
Method | Description | |
---|---|---|
generateVerts ( Mesh &mesh ) : void | ||
getUvsForClippedQuad ( Rect uvRect, float clippedWidth, float clippedHeight, Vector2 orthoAdjustedPixelPerfectHDSize ) : Vector2[] | ||
offsetForAnchor ( ) : Vector2 |
returns the required offset for a given anchor assuming quads are built from the bottom left to top right
|
Method | Description | |
---|---|---|
OnApplicationQuit ( ) : void | ||
Update ( ) : void |
public static createSprite ( SKSpriteSheet, sheet, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheet | SKSpriteSheet, | |
imageName | string | |
anchor | SpriteAnchor, | |
return | SKSprite, |
public static createSprite ( string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
imageName | string | |
anchor | SpriteAnchor, | |
return | SKSprite, |
public static createSprite ( string sheetName, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheetName | string | |
imageName | string | |
anchor | SpriteAnchor, | |
return | SKSprite, |
protected generateVerts ( Mesh &mesh ) : void | ||
mesh | Mesh | |
return | void |
protected getUvsForClippedQuad ( Rect uvRect, float clippedWidth, float clippedHeight, Vector2 orthoAdjustedPixelPerfectHDSize ) : Vector2[] | ||
uvRect | Rect | |
clippedWidth | float | |
clippedHeight | float | |
orthoAdjustedPixelPerfectHDSize | Vector2 | |
return | Vector2[] |
public Dictionary |
||
return | SKSpriteAnimationState>.Dictionary |
public SKSpriteAnimation, currentAnimation | ||
return | SKSpriteAnimation, |
public static bool isDoubleDensityScreen | ||
return | bool |
public MeshFilter,UnityEngine meshFilter | ||
return |