프로퍼티 | 타입 | 설명 | |
---|---|---|---|
anchor | SpriteAnchor, | ||
animations | SKSpriteAnimationState>.Dictionary | ||
currentAnimation | SKSpriteAnimation, | ||
desiredSize | Vector2 | ||
isDoubleDensityScreen | bool | ||
meshFilter | |||
pixelPerfectHDSize | Vector2 | ||
renderer | Renderer | ||
scale | Vector3 | ||
sourceImageName | string | ||
spriteSheet | SKSpriteSheet, | ||
tintColor | Color |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
OnApplicationQuit ( ) : void | ||
Update ( ) : void |
public static createSprite ( SKSpriteSheet, sheet, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheet | SKSpriteSheet, | |
imageName | string | |
anchor | SpriteAnchor, | |
리턴 | SKSprite, |
public static createSprite ( string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
imageName | string | |
anchor | SpriteAnchor, | |
리턴 | SKSprite, |
public static createSprite ( string sheetName, string imageName, SpriteAnchor, anchor ) : SKSprite, | ||
sheetName | string | |
imageName | string | |
anchor | SpriteAnchor, | |
리턴 | SKSprite, |
protected getUvsForClippedQuad ( Rect uvRect, float clippedWidth, float clippedHeight, Vector2 orthoAdjustedPixelPerfectHDSize ) : Vector2[] | ||
uvRect | Rect | |
clippedWidth | float | |
clippedHeight | float | |
orthoAdjustedPixelPerfectHDSize | Vector2 | |
리턴 | Vector2[] |