Skip to content

Remove position parenting once link is broken #21

@Gallasko

Description

@Gallasko

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions