C# Class UnityEngine.UI.VertexHelper

Inheritance: IDisposable
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
AddTriangle ( int idx0, int idx1, int idx2 ) : void

Add a triangle to the buffer.

AddUIVertexQuad ( UIVertex verts ) : void

Add a quad to the stream.

AddUIVertexStream ( List verts, List indices ) : void
AddUIVertexTriangleStream ( List verts ) : void
AddVert ( UIVertex v ) : void

Add a single vertex to the stream.

AddVert ( Vector3 position, Color32 color, Vector2 uv0 ) : void

Add a single vertex to the stream.

AddVert ( Vector3 position, Color32 color, Vector2 uv0, Vector2 uv1, Vector3 normal, Vector4 tangent ) : void

Add a single vertex to the stream.

Clear ( ) : void

Clear all vertices from the stream.

Dispose ( ) : void

Cleanup allocated memory.

FillMesh ( Mesh mesh ) : void

Fill the given mesh with the stream data.

GetUIVertexStream ( List stream ) : void
PopulateUIVertex ( UIVertex &vertex, int i ) : void
SetUIVertex ( UIVertex vertex, int i ) : void

Set a UIVertex at the given index.

VertexHelper ( ) : System
VertexHelper ( Mesh m ) : System

Method Details

AddTriangle() public method

Add a triangle to the buffer.

public AddTriangle ( int idx0, int idx1, int idx2 ) : void
idx0 int Index 0.
idx1 int Index 1.
idx2 int Index 2.
return void

AddUIVertexQuad() public method

Add a quad to the stream.

public AddUIVertexQuad ( UIVertex verts ) : void
verts UnityEngine.UIVertex 4 Vertices representing the quad.
return void

AddUIVertexStream() public method

public AddUIVertexStream ( List verts, List indices ) : void
verts List
indices List
return void

AddUIVertexTriangleStream() public method

public AddUIVertexTriangleStream ( List verts ) : void
verts List
return void

AddVert() public method

Add a single vertex to the stream.

public AddVert ( UIVertex v ) : void
v UnityEngine.UIVertex
return void

AddVert() public method

Add a single vertex to the stream.

public AddVert ( Vector3 position, Color32 color, Vector2 uv0 ) : void
position Vector3
color UnityEngine.Color32
uv0 Vector2
return void

AddVert() public method

Add a single vertex to the stream.

public AddVert ( Vector3 position, Color32 color, Vector2 uv0, Vector2 uv1, Vector3 normal, Vector4 tangent ) : void
position Vector3
color UnityEngine.Color32
uv0 Vector2
uv1 Vector2
normal Vector3
tangent Vector4
return void

Clear() public method

Clear all vertices from the stream.

public Clear ( ) : void
return void

Dispose() public method

Cleanup allocated memory.

public Dispose ( ) : void
return void

FillMesh() public method

Fill the given mesh with the stream data.

public FillMesh ( Mesh mesh ) : void
mesh UnityEngine.Mesh
return void

GetUIVertexStream() public method

public GetUIVertexStream ( List stream ) : void
stream List
return void

PopulateUIVertex() public method

public PopulateUIVertex ( UIVertex &vertex, int i ) : void
vertex UnityEngine.UIVertex
i int
return void

SetUIVertex() public method

Set a UIVertex at the given index.

public SetUIVertex ( UIVertex vertex, int i ) : void
vertex UnityEngine.UIVertex
i int
return void

VertexHelper() public method

public VertexHelper ( ) : System
return System

VertexHelper() public method

public VertexHelper ( Mesh m ) : System
m UnityEngine.Mesh
return System