Disable
A utility mixin which disables a component mask when an entity is created.
This is useful for adding components to an entity during instantiation, and
immediately disabling them. The disable()
mixin must be used after the
mixins of components that are to be disabled.
instantiate(game, [
transform(),
lifespan(5),
disable(Has.Lifespan),
])