getInstanceCount method

  1. @override
Future<int> getInstanceCount(
  1. ThermionEntity entity
)
override

Returns the number of instances of the asset associated with entity.

Implementation

@override
Future<int> getInstanceCount(ThermionEntity entity) async {
  final result = _module.ccall(
      "get_instance_count",
      "int",
      ["void*".toJS, "int".toJS].toJS,
      [_sceneManager!, entity.toJS].toJS,
      null) as JSNumber;
  return result.toDartInt;
}