Table of Contents

Class CGMeshProperties

Helper class used by InputMesh module

[Serializable]
public class CGMeshProperties
Inheritance
CGMeshProperties

Constructors

CGMeshProperties()

public CGMeshProperties()

CGMeshProperties(Mesh)

public CGMeshProperties(Mesh mesh)

Parameters

mesh Mesh

Properties

Material

Gets or sets the materials array, one per submesh

public Material[] Material { get; set; }

Property Value

Material[]

Matrix

Gets the TRS matrix combining translation, rotation, and scale

public Matrix4x4 Matrix { get; }

Property Value

Matrix4x4

Mesh

Gets or sets the mesh. Setting a new mesh resizes the material array to match the submesh count.

public Mesh Mesh { get; set; }

Property Value

Mesh

Rotation

Gets or sets the rotation (Euler angles)

public Vector3 Rotation { get; set; }

Property Value

Vector3

Scale

Gets or sets the scale

public Vector3 Scale { get; set; }

Property Value

Vector3

Translation

Gets or sets the translation offset

public Vector3 Translation { get; set; }

Property Value

Vector3