removeEntity method

void removeEntity(
  1. int entity
)

Implementation

void removeEntity(int entity) {
  _ensureNotDisposed();
  if (_api.destroyEntity(_handle, entity) == 0) {
    throw StateError('Native scene has no entity with ID $entity.');
  }
}