C# Class SKSpriteSheet, SpriteKit

Inheritance: UnityEngine.ScriptableObject
Show file Open project: prime31/SpriteKit Class Usage Examples

Public Properties

Property Type Description
cameraOrthoSize int
containedImages string[]
hasHdAtlas bool
imageSourceFolder string
material Material
targetScreenHeight int

Public Methods

Method Description
ToString ( ) : string
getMaterial ( bool isHD ) : Material
sheetWithImageSourceFolder ( string imageSourceFolder ) : SKSpriteSheet,
sheetWithName ( string name ) : SKSpriteSheet,
sheetWithSprite ( string spriteName ) : SKSpriteSheet,
textureInfoForImage ( string sourceImageName ) : SKTextureInfo,

source name can be either just the file name or the file name and extension

Method Details

ToString() public method

public ToString ( ) : string
return string

getMaterial() public method

public getMaterial ( bool isHD ) : Material
isHD bool
return Material

sheetWithImageSourceFolder() public static method

public static sheetWithImageSourceFolder ( string imageSourceFolder ) : SKSpriteSheet,
imageSourceFolder string
return SKSpriteSheet,

sheetWithName() public static method

public static sheetWithName ( string name ) : SKSpriteSheet,
name string
return SKSpriteSheet,

sheetWithSprite() public static method

public static sheetWithSprite ( string spriteName ) : SKSpriteSheet,
spriteName string
return SKSpriteSheet,

textureInfoForImage() public method

source name can be either just the file name or the file name and extension
public textureInfoForImage ( string sourceImageName ) : SKTextureInfo,
sourceImageName string
return SKTextureInfo,

Property Details

cameraOrthoSize public property

public int cameraOrthoSize
return int

containedImages public property

public string[] containedImages
return string[]

hasHdAtlas public property

public bool hasHdAtlas
return bool

imageSourceFolder public property

public string imageSourceFolder
return string

material public property

public Material material
return Material

targetScreenHeight public property

public int targetScreenHeight
return int