C# Class TrackBuildRUtil.DynamicMeshGenericMultiMaterialMesh

显示文件 Open project: Alx666/ProjectPhoenix

Public Properties

Property Type Description
name string

Public Methods

Method Description
AddData ( 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 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.

AddTri ( Vector3 p0, Vector3 p1, Vector3 p2, int subMesh ) : void
Atlas ( Rect newTextureCoords, TrackBuildRTexture textures ) : void
Atlas ( int modifySubmeshes, Rect newTextureCoords ) : void
Atlas ( int modifySubmeshes, Rect newTextureCoords, TrackBuildRTexture textures ) : void

Atlas the specified modifySubmeshes using newTextureCoords and textures.

Build ( ) : void
Build ( bool calcTangents ) : void
CheckMaxTextureUVs ( TrackBuildRTexture textures ) : void

Checks the Max UV values used in this model for each trackTexture.

Clear ( ) : void
CollapseSubmeshes ( ) : void
DynamicMeshGenericMultiMaterialMesh ( ) : UnityEngine
MaxWorldUvSize ( int submesh ) : Vector2
MinWorldUvSize ( int submesh ) : Vector2
SolveTangents ( ) : void
UseNewMesh ( ) : int
UseNewMesh ( int meshIndex ) : int
this ( int index ) : DynamicMeshGenericMultiMaterial

Private Methods

Method Description
CheckMeshSize ( int numberOfNewVerts ) : int

Method Details

AddData() public method

public AddData ( Vector3 verts, Vector2 uvs, int tris, int subMesh ) : void
verts UnityEngine.Vector3
uvs UnityEngine.Vector2
tris int
subMesh int
return void

AddPlane() public method

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
return void

AddPlane() public method

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
return void

AddPlane() public method

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
return void

AddTri() public method

public AddTri ( Vector3 p0, Vector3 p1, Vector3 p2, int subMesh ) : void
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
subMesh int
return void

Atlas() public method

public Atlas ( Rect newTextureCoords, TrackBuildRTexture textures ) : void
newTextureCoords UnityEngine.Rect
textures TrackBuildRTexture
return void

Atlas() public method

public Atlas ( int modifySubmeshes, Rect newTextureCoords ) : void
modifySubmeshes int
newTextureCoords UnityEngine.Rect
return void

Atlas() public method

Atlas the specified modifySubmeshes using newTextureCoords and textures.
public Atlas ( int modifySubmeshes, Rect newTextureCoords, TrackBuildRTexture textures ) : void
modifySubmeshes int
newTextureCoords UnityEngine.Rect
textures TrackBuildRTexture
return void

Build() public method

public Build ( ) : void
return void

Build() public method

public Build ( bool calcTangents ) : void
calcTangents bool
return void

CheckMaxTextureUVs() public method

Checks the Max UV values used in this model for each trackTexture.
public CheckMaxTextureUVs ( TrackBuildRTexture textures ) : void
textures TrackBuildRTexture
return void

Clear() public method

public Clear ( ) : void
return void

CollapseSubmeshes() public method

public CollapseSubmeshes ( ) : void
return void

DynamicMeshGenericMultiMaterialMesh() public method

public DynamicMeshGenericMultiMaterialMesh ( ) : UnityEngine
return UnityEngine

MaxWorldUvSize() public method

public MaxWorldUvSize ( int submesh ) : Vector2
submesh int
return UnityEngine.Vector2

MinWorldUvSize() public method

public MinWorldUvSize ( int submesh ) : Vector2
submesh int
return UnityEngine.Vector2

SolveTangents() public method

public SolveTangents ( ) : void
return void

UseNewMesh() public method

public UseNewMesh ( ) : int
return int

UseNewMesh() public method

public UseNewMesh ( int meshIndex ) : int
meshIndex int
return int

this() public method

public this ( int index ) : DynamicMeshGenericMultiMaterial
index int
return DynamicMeshGenericMultiMaterial

Property Details

name public_oe property

public string name
return string