Свойство | 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 |
Méthode | 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 |
Méthode | 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
|
Méthode | Description | |
---|---|---|
OnApplicationQuit ( ) : void | ||
Update ( ) : void |
public static createSprite ( SKSpriteSheet, sheet, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheet | SKSpriteSheet, | |
imageName | string | |
anchor | SpriteAnchor, | |
Résultat | SKSprite, |
public static createSprite ( string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
imageName | string | |
anchor | SpriteAnchor, | |
Résultat | SKSprite, |
public static createSprite ( string sheetName, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheetName | string | |
imageName | string | |
anchor | SpriteAnchor, | |
Résultat | SKSprite, |
protected generateVerts ( Mesh &mesh ) : void | ||
mesh | Mesh | |
Résultat | void |
protected getUvsForClippedQuad ( Rect uvRect, float clippedWidth, float clippedHeight, Vector2 orthoAdjustedPixelPerfectHDSize ) : Vector2[] | ||
uvRect | Rect | |
clippedWidth | float | |
clippedHeight | float | |
orthoAdjustedPixelPerfectHDSize | Vector2 | |
Résultat | Vector2[] |
public playAnimation ( string name ) : void | ||
name | string | |
Résultat | void |
public startAnimation ( string name ) : void | ||
name | string | |
Résultat | void |
public Dictionary |
||
Résultat | SKSpriteAnimationState>.Dictionary |
public SKSpriteAnimation, currentAnimation | ||
Résultat | SKSpriteAnimation, |
public static bool isDoubleDensityScreen | ||
Résultat | bool |
public MeshFilter,UnityEngine meshFilter | ||
Résultat |