Skip to content

Container.getByName is broken in 3.88 #7040

@XWILKINX

Description

@XWILKINX

Version

  • Phaser Version: 3.88
  • Operating system: Windows 10
  • Browser: Chrome

Description

Phaser.GameObject.Container.getByName returns null in v3.88 where it previously worked as expected in v3.87.

Example Test Code

const container = this.scene.add.container().setName("test");
this.add(container);
console.log(this.getByName("test")); //null

Additional Information

I suspect the changes to Utils.Array.GetFirst are causing this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions