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.
name | type | description |
---|---|---|
gameObject | Phaser.GameObjects.GameObject |
The Game Object to test. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera which is being tested against. |
true
if the Game Object should be considered for input, otherwise false
.