C# 클래스 SKTextureUtil, SpriteKit

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

공개 프로퍼티들

프로퍼티 타입 설명
atlasPadding int
defaultAnimationsPath string
defaultAtlasResourcesPath string
defaultPath string
defaultResourcesPath string
defaultShader string
defaultSpriteSheetPath string
isCurrentlyRefreshingSourceImages bool

공개 메소드들

메소드 설명
createSpriteSheet ( string name, string sourceFolder, bool generateSdTexture, int cameraOrthoSize, int targetScreenHeight ) : SKSpriteSheet,
getAllSpriteAnimations ( ) : List
getAllSpriteSheets ( ) : List
makePathRelativeToProject ( string path ) : string
rebuildAtlas ( Texture2D textures, string filename, bool generateSdAtlas ) : Rect[]
refreshSourceImages ( this sheet ) : void
saveAtlasPng ( string path, string name, Texture2D tex ) : void
textureInfoForSourceImage ( this sheet, string sourceImageName ) : SKTextureInfo,

비공개 메소드들

메소드 설명
resizeTexture ( string pathToImage, int width, int height, string outputFilename ) : Texture2D

메소드 상세

createSpriteSheet() 공개 정적인 메소드

public static createSpriteSheet ( string name, string sourceFolder, bool generateSdTexture, int cameraOrthoSize, int targetScreenHeight ) : SKSpriteSheet,
name string
sourceFolder string
generateSdTexture bool
cameraOrthoSize int
targetScreenHeight int
리턴 SKSpriteSheet,

getAllSpriteAnimations() 공개 정적인 메소드

public static getAllSpriteAnimations ( ) : List
리턴 List

getAllSpriteSheets() 공개 정적인 메소드

public static getAllSpriteSheets ( ) : List
리턴 List

makePathRelativeToProject() 공개 정적인 메소드

public static makePathRelativeToProject ( string path ) : string
path string
리턴 string

rebuildAtlas() 공개 정적인 메소드

public static rebuildAtlas ( Texture2D textures, string filename, bool generateSdAtlas ) : Rect[]
textures UnityEngine.Texture2D
filename string
generateSdAtlas bool
리턴 Rect[]

refreshSourceImages() 공개 정적인 메소드

public static refreshSourceImages ( this sheet ) : void
sheet this
리턴 void

saveAtlasPng() 공개 정적인 메소드

public static saveAtlasPng ( string path, string name, Texture2D tex ) : void
path string
name string
tex UnityEngine.Texture2D
리턴 void

textureInfoForSourceImage() 공개 정적인 메소드

public static textureInfoForSourceImage ( this sheet, string sourceImageName ) : SKTextureInfo,
sheet this
sourceImageName string
리턴 SKTextureInfo,

프로퍼티 상세

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

public static int atlasPadding
리턴 int

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

public static string defaultAnimationsPath
리턴 string

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

public static string defaultAtlasResourcesPath
리턴 string

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

public static string defaultPath
리턴 string

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

public static string defaultResourcesPath
리턴 string

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

public static string defaultShader
리턴 string

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

public static string defaultSpriteSheetPath
리턴 string

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

public static bool isCurrentlyRefreshingSourceImages
리턴 bool