createInstance method

  1. @override
Future<ThermionEntity> createInstance(
  1. ThermionEntity entity
)
override

Implementation

@override
Future<ThermionEntity> createInstance(ThermionEntity entity) async {
  var created = await withIntCallback(
      (callback) => create_instance(_sceneManager!, entity));
  if (created == _FILAMENT_ASSET_ERROR) {
    throw Exception("Failed to create instance");
  }
  return created;
}