Table of Contents

Class SerializableSprite

Namespace
Lime
Assembly
Lime.dll
[SerializableAsset(new string[] { "png" })]
public sealed class SerializableSprite : ISprite, ISerializableAsset
Inheritance
SerializableSprite
Implements
Inherited Members
Extension Methods

Constructors

SerializableSprite()

public SerializableSprite()

SerializableSprite(string)

public SerializableSprite(string path)

Parameters

path string

Properties

AtlasSize

public Vector2 AtlasSize { get; }

Property Value

Vector2

AtlasTexture

public ITexture AtlasTexture { get; }

Property Value

ITexture

IndexCount

public int IndexCount { get; }

Property Value

int

IsRectangular

public bool IsRectangular { get; }

Property Value

bool

SerializationPath

[YuzuMember]
public string SerializationPath { get; set; }

Property Value

string

Size

public Vector2 Size { get; }

Property Value

Vector2

VertexCount

public int VertexCount { get; }

Property Value

int

Methods

GetIndex(int)

public ushort GetIndex(int index)

Parameters

index int

Returns

ushort

GetUV(int)

public Vector2 GetUV(int index)

Parameters

index int

Returns

Vector2

GetVertex(int)

public Vector2 GetVertex(int index)

Parameters

index int

Returns

Vector2

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ValidateRectangular(Node, string)

public bool ValidateRectangular(Node node, string useContext)

Parameters

node Node
useContext string

Returns

bool