modelClipNamesOf function

List<String> modelClipNamesOf(
  1. Uint8List bytes
)

The names of the clips the model file bytes (.glb or .gltf) has, in its order, as loadModelData names them: an animation's own name, or animation <index> for one with none; an animation that moves nothing the loader animates makes no clip. A .glb's bytes may end after its JSON chunk: only the JSON is read.

Reads on the calling isolate. Throws a FormatException for a malformed file.

Implementation

List<String> modelClipNamesOf(Uint8List bytes) =>
    gltfClipNames(isGlb(bytes) ? glbJson(bytes) : _jsonOf(bytes));