C# 클래스 SKSprite, SpriteKit

상속: MonoBehaviour
파일 보기 프로젝트 열기: prime31/SpriteKit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
anchor SpriteAnchor,
animations SKSpriteAnimationState>.Dictionary
currentAnimation SKSpriteAnimation,
desiredSize Vector2
isDoubleDensityScreen bool
meshFilter UnityEngine.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

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

createSprite() 공개 정적인 메소드

public static createSprite ( SKSpriteSheet, sheet, string imageName, SpriteAnchor, anchor ) : SKSprite,
sheet SKSpriteSheet,
imageName string
anchor SpriteAnchor,
리턴 SKSprite,

createSprite() 공개 정적인 메소드

public static createSprite ( string imageName, SpriteAnchor, anchor ) : SKSprite,
imageName string
anchor SpriteAnchor,
리턴 SKSprite,

createSprite() 공개 정적인 메소드

public static createSprite ( string sheetName, string imageName, SpriteAnchor, anchor ) : SKSprite,
sheetName string
imageName string
anchor SpriteAnchor,
리턴 SKSprite,

faceBackwards() 공개 메소드

public faceBackwards ( ) : void
리턴 void

faceForwards() 공개 메소드

public faceForwards ( ) : void
리턴 void

flipHorizontally() 공개 메소드

public flipHorizontally ( ) : void
리턴 void

generateMesh() 공개 메소드

public generateMesh ( ) : void
리턴 void

generateVerts() 보호된 메소드

protected generateVerts ( Mesh &mesh ) : void
mesh Mesh
리턴 void

getUvsForClippedQuad() 보호된 메소드

protected getUvsForClippedQuad ( Rect uvRect, float clippedWidth, float clippedHeight, Vector2 orthoAdjustedPixelPerfectHDSize ) : Vector2[]
uvRect Rect
clippedWidth float
clippedHeight float
orthoAdjustedPixelPerfectHDSize Vector2
리턴 Vector2[]

offsetForAnchor() 보호된 메소드

returns the required offset for a given anchor assuming quads are built from the bottom left to top right
protected offsetForAnchor ( ) : Vector2
리턴 Vector2

playAnimation() 공개 메소드

public playAnimation ( string name ) : void
name string
리턴 void

preloadAnimations() 공개 메소드

public preloadAnimations ( ) : void
리턴 void

rotate() 공개 메소드

public rotate ( float degrees ) : void
degrees float
리턴 void

setColor() 공개 메소드

public setColor ( Color tint ) : void
tint Color
리턴 void

setUVs() 공개 메소드

public setUVs ( Rect uvRect ) : void
uvRect Rect
리턴 void

startAnimation() 공개 메소드

public startAnimation ( string name ) : void
name string
리턴 void

프로퍼티 상세

anchor 공개적으로 프로퍼티

public SpriteAnchor, anchor
리턴 SpriteAnchor,

animations 공개적으로 프로퍼티

public Dictionary animations
리턴 SKSpriteAnimationState>.Dictionary

currentAnimation 공개적으로 프로퍼티

public SKSpriteAnimation, currentAnimation
리턴 SKSpriteAnimation,

desiredSize 공개적으로 프로퍼티

public Vector2 desiredSize
리턴 Vector2

isDoubleDensityScreen 공개적으로 정적으로 프로퍼티

public static bool isDoubleDensityScreen
리턴 bool

meshFilter 공개적으로 프로퍼티

public MeshFilter,UnityEngine meshFilter
리턴 UnityEngine.MeshFilter

pixelPerfectHDSize 공개적으로 프로퍼티

public Vector2 pixelPerfectHDSize
리턴 Vector2

renderer 공개적으로 프로퍼티

public Renderer renderer
리턴 Renderer

scale 공개적으로 프로퍼티

public Vector3 scale
리턴 Vector3

sourceImageName 공개적으로 프로퍼티

public string sourceImageName
리턴 string

spriteSheet 공개적으로 프로퍼티

public SKSpriteSheet, spriteSheet
리턴 SKSpriteSheet,

tintColor 공개적으로 프로퍼티

public Color tintColor
리턴 Color