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


_visible

_visible: boolean

Description:

Private internal value. Holds the visible value.

Access: private

Source: src/gameobjects/components/Visible.js#L20
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:

name

type

optional

description

value

boolean

No

The 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


Updated on