Skip to content

__CreateDynamicEntity

Entity(Base) __CreateDynamicEntity(Entity(Base)? meta, String? name)

Builtins · internal core builtin · accessible from Bootstrap only

Creates a new dynamic entity.

Dynamic entities belong to the current session and are removed by __Cleanup.

Parameters

  • Entity(Base)? meta — The meta entity of the new dynamic entity.
  • String? name — The name of the new entity, or null to generate a GUID.

Returns

Entity(Base) — The new dynamic entity.

Errors

A runtime type error if meta is not an Entity.

See Also