Phaser API Documentation

  Version: 
willRender()

Description:

Compares the renderMask with the renderFlags to see if this Game Object will render or not.

DOMElements always return true as they need to still set values during the render pass, even if not visible.

Returns:
Description:

true if the Game Object should be rendered, otherwise false.

Type:
  • boolean
Since: 3.17.0