createEntity method
Implementation
int createEntity() {
_ensureNotDisposed();
final entity = _api.createEntity(_handle);
if (entity == 0) {
throw StateError('The native scene could not allocate an entity.');
}
return entity;
}
int createEntity() {
_ensureNotDisposed();
final entity = _api.createEntity(_handle);
if (entity == 0) {
throw StateError('The native scene could not allocate an entity.');
}
return entity;
}