Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> ToggleVisible(items)

Description:

Takes an array of Game Objects and toggles the visibility of each one. Those previously visible = false will become visible = true, and vice versa.

Parameters:

name type description
items array | Array.<Phaser.GameObjects.GameObject>

An array of Game Objects. The contents of this array are updated by this Action.

Returns:
Description:

The array of Game Objects that was passed to this Action.

Type:
Examples:
Since: 3.0.0