packedData property

({Uint8List? indexBytes, bool indices32Bit, Uint8List vertexBytes}) get packedData

The packed interleaved vertex bytes (and packed index bytes with their width), in the engine's interleaved unskinned layout. Interleaved lazily from the per-attribute CPU streams on first access. The scene serializer emits the de-interleaved soaData instead; this stays as a convenience for callers wanting the interleaved form.

Implementation

({Uint8List vertexBytes, Uint8List? indexBytes, bool indices32Bit})
get packedData {
  _requireReadable('packedData');
  return (
    vertexBytes: _packedVertexBytes ??=
        InterleavedLayoutAdapter.packUnskinned(
          positions: _cpuPositions,
          vertexCount: _liveVertexCount,
          normals: _cpuNormals,
          texCoords: _cpuTexCoords,
          texCoords1: _cpuTexCoords1,
          colors: _cpuColors,
          tangents: _cpuTangents,
        ),
    indexBytes: _packedIndexBytes,
    indices32Bit: _packedIndices32Bit,
  );
}