Click or drag to resize

ArrayMeshArrayType Enumeration

[Missing <summary> documentation for "T:Godot.ArrayMesh.ArrayType"]

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public enum ArrayType
Members
  Member nameValueDescription
Vertex0

Vector3, Vector2, or Array of vertex positions.

Normal1

Vector3 of vertex normals.

Tangent2

Single of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1.

Color3

Color of vertex colors.

TexUv4

Vector2 for UV coordinates.

TexUv25

Vector2 for second UV coordinates.

Bones6

Single or Int32 of bone indices. Each element in groups of 4 floats.

Weights7

Single of bone weights. Each element in groups of 4 floats.

Index8

Int32 of integers used as indices referencing vertices, colors, normals, tangents, and textures. All of those arrays must have the same number of elements as the vertex array. No index can be beyond the vertex array size. When this index array is present, it puts the function into "index mode," where the index selects the *i*'th vertex, normal, tangent, color, UV, etc. This means if you want to have different normals or colors along an edge, you have to duplicate the vertices.

For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line.

Max9

Represents the size of the ArrayMeshArrayType enum.

See Also