Create a RemoveParenting event for position component that remove the parenting created between two components
Careful A component can have the same parent multiple time (anchored top and left for exemple) so the Remove parenting should decrease a parental counter and only remove the parental link once this counter reach 0
Remove parenting should be call:
- When a Position component is deleted (from detach or the entity being deleted)
- When an anchor changed (i.g. you change the top anchor of comp1 from comp2 to comp3, the parental link from comp2 -> comp 1 should be removed)
Create a RemoveParenting event for position component that remove the parenting created between two components
Careful A component can have the same parent multiple time (anchored top and left for exemple) so the Remove parenting should decrease a parental counter and only remove the parental link once this counter reach 0
Remove parenting should be call: