Table of Contents

Class MeshUtils

Namespace
AwesomeTechnologies
Assembly
Assembly-CSharp.dll
public class MeshUtils
Inheritance
MeshUtils
Inherited Members
Extension Methods

Constructors

MeshUtils()

public MeshUtils()

Methods

CalculateBounds(GameObject)

public static Bounds CalculateBounds(GameObject go)

Parameters

go GameObject

Returns

Bounds

CalculateBoundsInstantiate(GameObject)

public static Bounds CalculateBoundsInstantiate(GameObject go)

Parameters

go GameObject

Returns

Bounds

CreateBoxMesh(float, float, float)

public static Mesh CreateBoxMesh(float length = 1, float width = 1, float height = 1)

Parameters

length float
width float
height float

Returns

Mesh

CreateCapsuleMesh(float, float)

public static Mesh CreateCapsuleMesh(float radius, float height)

Parameters

radius float
height float

Returns

Mesh

CreateSphereMesh(float)

public static Mesh CreateSphereMesh(float radius = 1)

Parameters

radius float

Returns

Mesh

ExtrudeMeshFromPolygon(Vector3[], float)

public static Mesh ExtrudeMeshFromPolygon(Vector3[] polygonPoints, float yExtent)

Parameters

polygonPoints Vector3[]
yExtent float

Returns

Mesh

GetLODCount(GameObject, IShaderController)

public static int GetLODCount(GameObject go, IShaderController shaderController)

Parameters

go GameObject
shaderController IShaderController

Returns

int

GetMeshRotation(GameObject, LODLevel)

public static Quaternion GetMeshRotation(GameObject go, LODLevel lodLevel)

Parameters

go GameObject
lodLevel LODLevel

Returns

Quaternion

SelectMeshObject(GameObject, LODLevel)

public static GameObject SelectMeshObject(GameObject go, LODLevel lodLevel)

Parameters

go GameObject
lodLevel LODLevel

Returns

GameObject