Mesh.ArrayFormat

Values

ValueMeaning
arrayFormatVertex1

Mesh array contains vertices. All meshes require a vertex array so this should always be present.

arrayFormatNormal2

Mesh array contains normals.

arrayFormatTangent4

Mesh array contains tangents.

arrayFormatColor8

Mesh array contains colors.

arrayCompressBase9

Used internally to calculate other ARRAY_COMPRESS_* enum values. Do not use.

arrayFormatTexUv16

Mesh array contains UVs.

arrayFormatTexUv232

Mesh array contains second UV.

arrayFormatBones64

Mesh array contains bones.

arrayFormatWeights128

Mesh array contains bone weights.

arrayFormatIndex256

Mesh array uses indices.

arrayCompressVertex512

Flag used to mark a compressed (half float) vertex array.

arrayCompressNormal1024

Flag used to mark a compressed (half float) normal array.

arrayCompressTangent2048

Flag used to mark a compressed (half float) tangent array.

arrayCompressColor4096

Flag used to mark a compressed (half float) color array.

arrayCompressTexUv8192

Flag used to mark a compressed (half float) UV coordinates array.

arrayCompressTexUv216384

Flag used to mark a compressed (half float) UV coordinates array for the second UV coordinates.

arrayCompressBones32768

Flag used to mark a compressed bone array.

arrayCompressWeights65536

Flag used to mark a compressed (half float) weight array.

arrayCompressDefault97280

Used to set flags constant ARRAY_COMPRESS_VERTEX, constant ARRAY_COMPRESS_NORMAL, constant ARRAY_COMPRESS_TANGENT, constant ARRAY_COMPRESS_COLOR, constant ARRAY_COMPRESS_TEX_UV, constant ARRAY_COMPRESS_TEX_UV2 and constant ARRAY_COMPRESS_WEIGHTS quickly.

arrayCompressIndex131072

Flag used to mark a compressed index array.

arrayFlagUse2dVertices262144

Flag used to mark that the array contains 2D vertices.

arrayFlagUse16BitBones524288

Flag used to mark that the array uses 16-bit bones instead of 8-bit.

Meta