Jump to content

Group.remove(child) throwing error if child isn't a member of the group


IndenturedSmile
 Share

Recommended Posts

If I try to remove a child from a Phaser.Group that doesn't exist in that group I get a "Supplied index does not exist in the child list, or the supplied DisplayObject must be a child of the caller" error. This is a PIXI error from DisplayObjectContainer.removeChild().

 

Is this the desired behavior for Phaser.Group? If not, I can open an issue on Github.

Link to comment
Share on other sites

Yes there's an open issue on the Pixi repo where we are discussing how it shouldn't throw an error in this case, but in the meantime we've caught it from Phaser and it's in the dev branch now (will be part of 2.0.4 release end of next week)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...