Table of Contents

Class ReadOnlyVertexData

Namespace
TMPEffects.CharacterData
Assembly
TMPEffects.dll

Holds data about a character's mesh.

public class ReadOnlyVertexData
Inheritance
ReadOnlyVertexData
Inherited Members

Constructors

ReadOnlyVertexData(TMP_CharacterInfo)

public ReadOnlyVertexData(TMP_CharacterInfo info)

Parameters

info TMP_CharacterInfo

ReadOnlyVertexData(TMP_Vertex, TMP_Vertex, TMP_Vertex, TMP_Vertex)

public ReadOnlyVertexData(TMP_Vertex bl, TMP_Vertex tl, TMP_Vertex tr, TMP_Vertex br)

Parameters

bl TMP_Vertex
tl TMP_Vertex
tr TMP_Vertex
br TMP_Vertex

Fields

initial

The initial vertex of the character.

public readonly ReadOnlyVertexData initial

Field Value

ReadOnlyVertexData

Properties

BL_Alpha

Get or set the alpha of the bottom left vertex.

public byte BL_Alpha { get; }

Property Value

byte

BL_Color

Get or set the color of the bottom left vertex.
Note that this will mark both colors and alphas as dirty.
Use SetColor(int, Color32, bool) if you want to only set color.

public Color32 BL_Color { get; }

Property Value

Color32

BL_Position

Get or set the position of the bottom left vertex.

public Vector3 BL_Position { get; }

Property Value

Vector3

BL_UV0

Get or set the UV0 of the bottom left vertex.

public Vector3 BL_UV0 { get; }

Property Value

Vector3

BL_UV2

Get or set the UV2 of the bottom left vertex.

public Vector3 BL_UV2 { get; }

Property Value

Vector3

BR_Alpha

Get or set the alpha of the bottom right vertex.

public byte BR_Alpha { get; }

Property Value

byte

BR_Color

Get or set the color of the bottom right vertex.
Note that this will mark both colors and alphas as dirty.
Use SetColor(int, Color32, bool) if you want to only set color.

public Color32 BR_Color { get; }

Property Value

Color32

BR_Position

Get or set the position of the bottom right vertex.

public Vector3 BR_Position { get; }

Property Value

Vector3

BR_UV0

Get or set the UV0 of the bottom right vertex.

public Vector3 BR_UV0 { get; }

Property Value

Vector3

BR_UV2

Get or set the UV2 of the bottom right vertex.

public Vector3 BR_UV2 { get; }

Property Value

Vector3

TL_Alpha

Get or set the alpha of the top left vertex.

public byte TL_Alpha { get; }

Property Value

byte

TL_Color

Get or set the color of the top left vertex.
Note that this will mark both colors and alphas as dirty.
Use SetColor(int, Color32, bool) if you want to only set color.

public Color32 TL_Color { get; }

Property Value

Color32

TL_Position

Get or set the position of the top left vertex.

public Vector3 TL_Position { get; }

Property Value

Vector3

TL_UV0

Get or set the UV0 of the bottom right vertex.

public Vector3 TL_UV0 { get; }

Property Value

Vector3

TL_UV2

Get or set the UV2 of the bottom right vertex.

public Vector3 TL_UV2 { get; }

Property Value

Vector3

TR_Alpha

Get or set the alpha of the top right vertex.

public byte TR_Alpha { get; }

Property Value

byte

TR_Color

Get or set the color of the top right vertex.
Note that this will mark both colors and alphas as dirty.
Use SetColor(int, Color32, bool) if you want to only set color.

public Color32 TR_Color { get; }

Property Value

Color32

TR_Position

Get or set the position of the top right vertex.

public Vector3 TR_Position { get; }

Property Value

Vector3

TR_UV0

Get or set the UV0 of the top right vertex.

public Vector3 TR_UV0 { get; }

Property Value

Vector3

TR_UV2

Get or set the UV2 of the top right vertex.

public Vector3 TR_UV2 { get; }

Property Value

Vector3

Methods

GetAlpha(int)

Get the alpha of the vertex associated with the index.
0 => bottom left
1 => top left
2 => top right
3 => bottom right

public byte GetAlpha(int i)

Parameters

i int

The index.

Returns

byte

The alpha of the vertex associated with the index.

Exceptions

ArgumentOutOfRangeException

GetColor(int)

Get the color of the vertex associated with the index.
0 => bottom left
1 => top left
2 => top right
3 => bottom right

public Color32 GetColor(int i)

Parameters

i int

The index.

Returns

Color32

The color of the vertex associated with the index.

Exceptions

ArgumentOutOfRangeException

GetPosition(int)

Get the position of the vertex associated with the index.
0 => bottom left
1 => top left
2 => top right
3 => bottom right

public Vector3 GetPosition(int i)

Parameters

i int

The index.

Returns

Vector3

The position of the vertex associated with the index.

Exceptions

ArgumentOutOfRangeException

GetUV0(int)

Get the UV0 of the vertex associated with the index.
0 => bottom left
1 => top left
2 => top right
3 => bottom right

public Vector2 GetUV0(int i)

Parameters

i int

The index.

Returns

Vector2

The UV0 of the vertex associated with the index.

Exceptions

ArgumentOutOfRangeException

GetUV2(int)

Get the UV2 of the vertex associated with the index.
0 => bottom left
1 => top left
2 => top right
3 => bottom right

public Vector2 GetUV2(int i)

Parameters

i int

The index.

Returns

Vector2

The UV2 of the vertex associated with the index.

Exceptions

ArgumentOutOfRangeException