loadGltfFromBuffer abstract method

Future<ThermionAsset> loadGltfFromBuffer(
  1. Uint8List data, {
  2. String? resourceUri,
  3. int initialInstances = 1,
  4. bool keepData = false,
  5. int priority = 4,
  6. int layer = 0,
  7. bool loadResourcesAsync = false,
  8. bool addToScene = true,
})

Loads a gltf asset from the specified buffer (which contains the contents of a .glb file).

See the loadGltf method for documentation on arguments.

Implementation

Future<ThermionAsset> loadGltfFromBuffer(Uint8List data,
    {String? resourceUri,
    int initialInstances = 1,
    bool keepData = false,
    int priority = 4,
    int layer = 0,
    bool loadResourcesAsync = false,
    bool addToScene = true});