Table of Contents

Class TriangleMesh

Namespace
Global
Assembly
Assembly-CSharp.dll
public class TriangleMesh : FSprite
Inheritance
TriangleMesh
Inherited Members

Constructors

TriangleMesh(string, Triangle[], bool, bool)

public TriangleMesh(string imageName, TriangleMesh.Triangle[] tris, bool customColor, bool atlasedImage = false)

Parameters

imageName string
tris Triangle[]
customColor bool
atlasedImage bool

Fields

UVvertices

public Vector2[] UVvertices

Field Value

Vector2[]

customColor

public bool customColor

Field Value

bool

triangles

public TriangleMesh.Triangle[] triangles

Field Value

Triangle[]

verticeColors

public Color[] verticeColors

Field Value

Color[]

vertices

public Vector2[] vertices

Field Value

Vector2[]

Properties

color

public override Color color { get; set; }

Property Value

Color

Methods

MakeGridMesh(string, int)

public static TriangleMesh MakeGridMesh(string texture, int widthHeight)

Parameters

texture string
widthHeight int

Returns

TriangleMesh

MakeLongMesh(int, bool, bool)

public static TriangleMesh MakeLongMesh(int segments, bool pointyTip, bool customColor)

Parameters

segments int
pointyTip bool
customColor bool

Returns

TriangleMesh

MakeLongMesh(int, bool, bool, string)

public static TriangleMesh MakeLongMesh(int segments, bool pointyTip, bool customColor, string texture)

Parameters

segments int
pointyTip bool
customColor bool
texture string

Returns

TriangleMesh

MakeLongMeshAtlased(int, bool, bool)

public static TriangleMesh MakeLongMeshAtlased(int segments, bool pointyTip, bool customColor)

Parameters

segments int
pointyTip bool
customColor bool

Returns

TriangleMesh

MoveVertice(int, Vector2)

public void MoveVertice(int ind, Vector2 pos)

Parameters

ind int
pos Vector2

PopulateRenderLayer()

public override void PopulateRenderLayer()

QuadGridMesh(Vector2[], TriangleMesh, int)

public static void QuadGridMesh(Vector2[] quad, TriangleMesh mesh, int widthHeight)

Parameters

quad Vector2[]
mesh TriangleMesh
widthHeight int

Refresh()

public void Refresh()

SetAtlasedImage(FAtlasElement)

public void SetAtlasedImage(FAtlasElement element)

Parameters

element FAtlasElement