loadGlb abstract method

Future<ThermionEntity> loadGlb(
  1. String path, {
  2. int numInstances = 1,
  3. bool keepData = false,
})

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

Future<ThermionEntity> loadGlb(String path,
    {int numInstances = 1, bool keepData = false});