ArrayType

    Mesh.swift:44
    enum ArrayType

    Cases

    • case vertex

      PackedVector3Array, PackedVector2Array, or GArray of vertex positions.

    • case normal

      PackedVector3Array of vertex normals.

    • case tangent

      PackedFloat32Array 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.

    • case color

      PackedColorArray of vertex colors.

    • case texUv

      PackedVector2Array for UV coordinates.

    • case texUv2

      PackedVector2Array for second UV coordinates.

    • case custom0

      Contains custom color channel 0. PackedByteArray if (format >> Mesh.ARRAY_FORMAT_CUSTOM0_SHIFT) & Mesh.ARRAY_FORMAT_CUSTOM_MASK is .arrayCustomRgba8Unorm, .arrayCustomRgba8Snorm, .arrayCustomRgHalf, or .arrayCustomRgbaHalf. PackedFloat32Array otherwise.

    • case custom1

      Contains custom color channel 1. PackedByteArray if (format >> Mesh.ARRAY_FORMAT_CUSTOM1_SHIFT) & Mesh.ARRAY_FORMAT_CUSTOM_MASK is .arrayCustomRgba8Unorm, .arrayCustomRgba8Snorm, .arrayCustomRgHalf, or .arrayCustomRgbaHalf. PackedFloat32Array otherwise.

    • case custom2

      Contains custom color channel 2. PackedByteArray if (format >> Mesh.ARRAY_FORMAT_CUSTOM2_SHIFT) & Mesh.ARRAY_FORMAT_CUSTOM_MASK is .arrayCustomRgba8Unorm, .arrayCustomRgba8Snorm, .arrayCustomRgHalf, or .arrayCustomRgbaHalf. PackedFloat32Array otherwise.

    • case custom3

      Contains custom color channel 3. PackedByteArray if (format >> Mesh.ARRAY_FORMAT_CUSTOM3_SHIFT) & Mesh.ARRAY_FORMAT_CUSTOM_MASK is .arrayCustomRgba8Unorm, .arrayCustomRgba8Snorm, .arrayCustomRgHalf, or .arrayCustomRgbaHalf. PackedFloat32Array otherwise.

    • case bones

      PackedFloat32Array or PackedInt32Array of bone indices. Contains either 4 or 8 numbers per vertex depending on the presence of the .arrayFlagUse8BoneWeights flag.

    • case weights

      PackedFloat32Array or PackedFloat64Array of bone weights in the range 0.0 to 1.0 (inclusive). Contains either 4 or 8 numbers per vertex depending on the presence of the .arrayFlagUse8BoneWeights flag.

    • case index

      PackedInt32Array 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.

    • case max

      Represents the size of the ArrayType enum.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (32) members.

    Types

    Type members

    Instance members

    Show implementation details (14)

    Hide implementation details

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features