C# Class SKTextureUtil, SpriteKit

Afficher le fichier Open project: prime31/SpriteKit Class Usage Examples

Méthodes publiques

Свойство Type Description
atlasPadding int
defaultAnimationsPath string
defaultAtlasResourcesPath string
defaultPath string
defaultResourcesPath string
defaultShader string
defaultSpriteSheetPath string
isCurrentlyRefreshingSourceImages bool

Méthodes publiques

Méthode Description
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,

Private Methods

Méthode Description
resizeTexture ( string pathToImage, int width, int height, string outputFilename ) : Texture2D

Method Details

createSpriteSheet() public static méthode

public static createSpriteSheet ( string name, string sourceFolder, bool generateSdTexture, int cameraOrthoSize, int targetScreenHeight ) : SKSpriteSheet,
name string
sourceFolder string
generateSdTexture bool
cameraOrthoSize int
targetScreenHeight int
Résultat SKSpriteSheet,

getAllSpriteAnimations() public static méthode

public static getAllSpriteAnimations ( ) : List
Résultat List

getAllSpriteSheets() public static méthode

public static getAllSpriteSheets ( ) : List
Résultat List

makePathRelativeToProject() public static méthode

public static makePathRelativeToProject ( string path ) : string
path string
Résultat string

rebuildAtlas() public static méthode

public static rebuildAtlas ( Texture2D textures, string filename, bool generateSdAtlas ) : Rect[]
textures UnityEngine.Texture2D
filename string
generateSdAtlas bool
Résultat Rect[]

refreshSourceImages() public static méthode

public static refreshSourceImages ( this sheet ) : void
sheet this
Résultat void

saveAtlasPng() public static méthode

public static saveAtlasPng ( string path, string name, Texture2D tex ) : void
path string
name string
tex UnityEngine.Texture2D
Résultat void

textureInfoForSourceImage() public static méthode

public static textureInfoForSourceImage ( this sheet, string sourceImageName ) : SKTextureInfo,
sheet this
sourceImageName string
Résultat SKTextureInfo,

Property Details

atlasPadding public_oe static_oe property

public static int atlasPadding
Résultat int

defaultAnimationsPath public_oe static_oe property

public static string defaultAnimationsPath
Résultat string

defaultAtlasResourcesPath public_oe static_oe property

public static string defaultAtlasResourcesPath
Résultat string

defaultPath public_oe static_oe property

public static string defaultPath
Résultat string

defaultResourcesPath public_oe static_oe property

public static string defaultResourcesPath
Résultat string

defaultShader public_oe static_oe property

public static string defaultShader
Résultat string

defaultSpriteSheetPath public_oe static_oe property

public static string defaultSpriteSheetPath
Résultat string

isCurrentlyRefreshingSourceImages public_oe static_oe property

public static bool isCurrentlyRefreshingSourceImages
Résultat bool