C# Class TextureController, UnderworldExporter

Texture controller for applying palettes (UWPalette) to textures for object sprites.
Inheritance: UWEBase
Mostrar archivo Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
pal UWPalette,

Public Methods

Method Description
RequestSprite ( int index, bool isAnimated ) : Sprite

Creates a sprite for a item object at the specified object index.

RequestSprite ( string AssetPath ) : Sprite

Loads the sprite from the specified asset path.

Start ( ) : void

Private Methods

Method Description
LoadImage ( string BasePath ) : Texture2D
LoadImage ( string BasePath, int index ) : Texture2D

Method Details

RequestSprite() public method

Creates a sprite for a item object at the specified object index.
public RequestSprite ( int index, bool isAnimated ) : Sprite
index int Index.
isAnimated bool If set to true is animated.
return Sprite

RequestSprite() public method

Loads the sprite from the specified asset path.
public RequestSprite ( string AssetPath ) : Sprite
AssetPath string Asset path.
return Sprite

Start() public method

public Start ( ) : void
return void

Property Details

pal public_oe property

public UWPalette, pal
return UWPalette,