C# Класс TrackBuildRUtil.DynamicMesh

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
bounds UnityEngine.Bounds
mesh UnityEngine.Mesh
tangents List
triangles List
uv List
vertices List

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
BuildThisMesh ( ) : void
MeshOverflow ( int numberOfNewVerts ) : bool

Описание методов

AddData() публичный Метод

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
Результат void

AddPlane() публичный Метод

public AddPlane ( Vector3 verts, Vector2 uvs, int submesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
submesh int
Результат void

AddPlane() публичный Метод

public AddPlane ( Vector3 verts, Vector2 uvs, int tris, int submesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
tris int
submesh int
Результат void

AddPlane() публичный Метод

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
Результат void

AddPlane() публичный Метод

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
Результат void

AddPlane() публичный Метод

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
Результат void

AddPlane() публичный Метод

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
Результат void

Build() публичный Метод

public Build ( ) : void
Результат void

Clear() публичный Метод

Clears the mesh data, ready for nextNormIndex new mesh build
public Clear ( ) : void
Результат void

DynamicMesh() публичный Метод

public DynamicMesh ( string newName = "dynmesh" ) : System.Collections.Generic
newName string
Результат System.Collections.Generic

Описание свойств

bounds публичное свойство

public Bounds,UnityEngine bounds
Результат UnityEngine.Bounds

mesh публичное свойство

public Mesh,UnityEngine mesh
Результат UnityEngine.Mesh

tangents публичное свойство

public List tangents
Результат List

triangles публичное свойство

public List triangles
Результат List

uv публичное свойство

public List uv
Результат List

vertices публичное свойство

public List vertices
Результат List