Behavior.EntityOrNull Property
Definition
Namespace: Brine2D.ECS
Non-throwing internal read of the current entity reference, used only by EntityWorld's per-frame dispatch loops to check whether a behavior is still attached without incurring exception overhead. Brine2D.ECS.Entity.#ctor can be nulled out synchronously \(via [RemoveBehavior<T>\(\)](../Entity/RemoveBehavior_T_().md 'Brine2D.ECS.Entity.RemoveBehavior\<T>()') or Destroy()) even though removal from EntityWorld's dispatch lists is deferred until the next pass, so this must reflect the immediate value.