Phaser API Documentation

  Version: 
exists(child)

Description:

Returns true if the given Game Object is a direct child of this Container.

This check does not scan nested Containers.

Parameters:

name type description
child Phaser.GameObjects.GameObject

The Game Object to check for within this Container.

Returns:
Description:

True if the Game Object is an immediate child of this Container, otherwise false.

Type:
  • boolean
Since: 3.4.0