GltfResourceResolver typedef

GltfResourceResolver = Future<Uint8List> Function(String uri)

Resolves an external resource referenced by a multi-file glTF document (a .bin buffer or an image file).

Given the raw relative URI string from the glTF, returns the resource's bytes. Supplied by the caller of Node.fromGltfBytes / importGltf; data: URIs are decoded internally and never reach the resolver.

Implementation

typedef GltfResourceResolver = Future<Uint8List> Function(String uri);