Phaser API Documentation

  Version: 
<private> inputCandidate(gameObject, camera)

Description:

Checks if the given Game Object should be considered as a candidate for input or not.

Checks if the Game Object has an input component that is enabled, that it will render, and finally, if it has a parent, that the parent parent, or any ancestor, is visible or not.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object to test.

camera Phaser.Cameras.Scene2D.Camera

The Camera which is being tested against.

Returns:
Description:

true if the Game Object should be considered for input, otherwise false.

Type:
  • boolean
Since: 3.10.0