C# Class TrackBuildRUtil.DynamicMesh

Afficher le fichier Open project: Alx666/ProjectPhoenix Class Usage Examples

Méthodes publiques

Свойство Type Description
bounds UnityEngine.Bounds
mesh UnityEngine.Mesh
tangents List
triangles List
uv List
vertices List

Méthodes publiques

Méthode Description
AddData ( Vector3 verts, Vector2 uvs, int tris, Vector3 norms, Vector4 tan, int subMesh ) : void

Add new mesh data - all arrays are ordered together

AddPlane ( Vector3 verts, Vector2 uvs, int submesh ) : void
AddPlane ( Vector3 verts, Vector2 uvs, int tris, int submesh ) : void
AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 uv0, Vector2 uv1, Vector2 uv2, Vector2 uv3, int subMesh ) : void

Adds the plane to the generic dynamic mesh.

AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 uv0, Vector2 uv1, Vector2 uv2, Vector2 uv3, int tri0, int tri1, int tri2, int tri3, int tri4, int tri5, int subMesh ) : void
AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 minUV, Vector2 maxUV, int subMesh ) : void

Adds the plane to the generic dynamic mesh by specifying min and max UV coords.

AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, int subMesh ) : void

Adds the plane to the generic dynamic mesh without specifying UV coords.

Build ( ) : void
Clear ( ) : void

Clears the mesh data, ready for nextNormIndex new mesh build

DynamicMesh ( string newName = "dynmesh" ) : System.Collections.Generic

Private Methods

Méthode Description
BuildThisMesh ( ) : void
MeshOverflow ( int numberOfNewVerts ) : bool

Method Details

AddData() public méthode

Add new mesh data - all arrays are ordered together
public AddData ( Vector3 verts, Vector2 uvs, int tris, Vector3 norms, Vector4 tan, int subMesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
tris int
norms UnityEngine.Vector3
tan UnityEngine.Vector4
subMesh int
Résultat void

AddPlane() public méthode

public AddPlane ( Vector3 verts, Vector2 uvs, int submesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
submesh int
Résultat void

AddPlane() public méthode

public AddPlane ( Vector3 verts, Vector2 uvs, int tris, int submesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
tris int
submesh int
Résultat void

AddPlane() public méthode

Adds the plane to the generic dynamic mesh.
public AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 uv0, Vector2 uv1, Vector2 uv2, Vector2 uv3, int subMesh ) : void
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
uv0 UnityEngine.Vector2
uv1 UnityEngine.Vector2
uv2 UnityEngine.Vector2
uv3 UnityEngine.Vector2
subMesh int
Résultat void

AddPlane() public méthode

public AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 uv0, Vector2 uv1, Vector2 uv2, Vector2 uv3, int tri0, int tri1, int tri2, int tri3, int tri4, int tri5, int subMesh ) : void
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
uv0 UnityEngine.Vector2
uv1 UnityEngine.Vector2
uv2 UnityEngine.Vector2
uv3 UnityEngine.Vector2
tri0 int
tri1 int
tri2 int
tri3 int
tri4 int
tri5 int
subMesh int
Résultat void

AddPlane() public méthode

Adds the plane to the generic dynamic mesh by specifying min and max UV coords.
public AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 minUV, Vector2 maxUV, int subMesh ) : void
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
minUV UnityEngine.Vector2
maxUV UnityEngine.Vector2
subMesh int
Résultat void

AddPlane() public méthode

Adds the plane to the generic dynamic mesh without specifying UV coords.
public AddPlane ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, int subMesh ) : void
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
subMesh int
Résultat void

Build() public méthode

public Build ( ) : void
Résultat void

Clear() public méthode

Clears the mesh data, ready for nextNormIndex new mesh build
public Clear ( ) : void
Résultat void

DynamicMesh() public méthode

public DynamicMesh ( string newName = "dynmesh" ) : System.Collections.Generic
newName string
Résultat System.Collections.Generic

Property Details

bounds public_oe property

public Bounds,UnityEngine bounds
Résultat UnityEngine.Bounds

mesh public_oe property

public Mesh,UnityEngine mesh
Résultat UnityEngine.Mesh

tangents public_oe property

public List tangents
Résultat List

triangles public_oe property

public List triangles
Résultat List

uv public_oe property

public List uv
Résultat List

vertices public_oe property

public List vertices
Résultat List