Phaser API Documentation

  Version: 
setVisible(value, [index], [direction])

Description:

Sets the visible of each group member.

Parameters:

name type arguments Default description
value boolean

The value to set the property to.

index number <optional> 0

An optional offset to start searching from within the items array.

direction number <optional> 1

The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.

Returns:
Description:

This Group object.

Since: 3.21.0