Skip to main content
Version: Phaser v4.0.0-rc.6

Phaser.GameObjects.Components.Visible

Scope: static

Source: src/gameobjects/components/Visible.js#L10
Since: 3.0.0

Static functions

visible

visible: boolean

Description:

The visible state of the Game Object.

An invisible Game Object will skip rendering, but will still process update logic.

Source: src/gameobjects/components/Visible.js#L31
Since: 3.0.0


Static functions

setVisible

<instance> setVisible(value)

Description:

Sets the visibility of this Game Object.

An invisible Game Object will skip rendering, but will still process update logic.

Parameters:

nametypeoptionaldescription
valuebooleanNoThe visible state of the Game Object.

Returns: Phaser.GameObjects.Components.Visible - This Game Object instance.

Source: src/gameobjects/components/Visible.js#L63
Since: 3.0.0