loadGlb method

  1. @override
Future<ThermionEntity> loadGlb(
  1. String path, {
  2. int numInstances = 1,
})
override

Load the .glb asset at the given path and insert into the scene.

Implementation

@override
Future<ThermionEntity> loadGlb(String path, {int numInstances = 1}) async {
  var entity = (await _shim.loadGlb(path, numInstances).toDart).toDartInt;
  scene.registerEntity(entity);
  return entity;
}