C# Class SKSpriteSheet, SpriteKit

Inheritance: UnityEngine.ScriptableObject
显示文件 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_oe property

public int cameraOrthoSize
return int

containedImages public_oe property

public string[] containedImages
return string[]

hasHdAtlas public_oe property

public bool hasHdAtlas
return bool

imageSourceFolder public_oe property

public string imageSourceFolder
return string

material public_oe property

public Material material
return Material

targetScreenHeight public_oe property

public int targetScreenHeight
return int