Phaser API Documentation

  Version: 
getTotal([isVisible])

Description:

Gets the total number of Cameras in this Camera Manager.

If the optional isVisible argument is set it will only count Cameras that are currently visible.

Parameters:

name type arguments Default description
isVisible boolean <optional> false

Set the true to only include visible Cameras in the total.

Returns:
Description:

The total number of Cameras in this Camera Manager.

Type:
  • number
Since: 3.11.0