Class PixelArt
Base class for pixel art images generated by PixelLab.
This class provides properties for size, isometric view, usage, and note.
Inheritance
object
PixelArt
Assembly: .dll
Syntax
public abstract class PixelArt : IGeneratedFile, IGeneratedResult
Constructors
PixelArt(ImageSize, bool, Usage)
Declaration
public PixelArt(ImageSize size, bool isometric, Usage usage)
Parameters
Type |
Name |
Description |
ImageSize |
size |
|
bool |
isometric |
|
Usage |
usage |
|
Properties
Count
Declaration
public abstract int Count { get; }
Property Value
Isometric
Declaration
public bool Isometric { get; }
Property Value
Note
Declaration
public string Note { get; }
Property Value
Size
Declaration
public ImageSize Size { get; }
Property Value
Type |
Description |
ImageSize |
|
Usage
Declaration
public Usage Usage { get; }
Property Value
Methods
GetSpriteFile(Direction)
Declaration
public virtual File<Texture2D> GetSpriteFile(PixelLabTypes.Direction direction)
Parameters
Returns
Type |
Description |
File<Texture2D> |
|
SetNote(string)
Declaration
public void SetNote(string note)
Parameters
Type |
Name |
Description |
string |
note |
|
ToFiles()
Declaration
public abstract IFile[] ToFiles()
Returns
ToTexture2D()
Declaration
public abstract Texture2D ToTexture2D()
Returns
Type |
Description |
Texture2D |
|
Operators
implicit operator Texture2D(PixelArt)
Declaration
public static implicit operator Texture2D(PixelArt pixelArt)
Parameters
Returns
Type |
Description |
Texture2D |
|
Implements