Scope: static
Source: src/gameobjects/components/Visible.js#L10
Since: 3.0.0
Public Members
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
Private Members
_visible
_visible: boolean
Description:
Private internal value. Holds the visible value.
Access: private
Source: src/gameobjects/components/Visible.js#L20
Since: 3.0.0
Methods:
Public Members
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