Entity.SetParent(Entity) Method
Definition
Namespace: Brine2D.ECS
Sets the parent of this entity.
Parameters
newParent Entity
Returns
Exceptions
System.InvalidOperationException
Thrown when newParent belongs to a different world than this entity.
Remarks
Self-parent and circular-hierarchy attempts are silently ignored and this entity is returned unchanged. Cross-world parenting still throws because it indicates a clear programming error with no safe fallback.