loadGlb method
Load the .glb asset at the given path and insert into the scene.
Specify numInstances
to create multiple instances (this is more efficient than dynamically instantating at a later time). You can then retrieve the created instances with getInstances.
If you want to be able to call createInstance at a later time, you must pass true for keepData
.
If keepData
is false, the source glTF data will be released and createInstance will throw an exception.
Implementation
@override
Future<ThermionEntity> loadGlb(String path, {int numInstances = 1, bool keepData = false}) {
// TODO: implement loadGlb
throw UnimplementedError();
}