Skip to content

Changing parent Container creates a visual copy of a GameObject #5618

@mariogarranz

Description

@mariogarranz

Version

  • Phaser Version:

Phaser 3.53.1

  • Operating system:

MacOs

  • Browser:

Chrome 89.0.4389.90

Description

When a GameObject is moved from one Container to another one, a copy of this GameObject appears rendered at a global position of (0,0).

The expected behaviour is the GameObject to just be rendered according to its own position relative to the parent Container.

Example Test Code

https://codepen.io/mariogarranz/pen/VwPLzjG

Additional Information

I can confirm this issue was not present in 3.50.0.

It could be that issue #5599 is related to this problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions