Phaser API Documentation

  Version: 
<private> getNextID()

Description:

Gets the next available Camera ID number.

The Camera Manager supports up to 31 unique cameras, after which the ID returned will always be zero. You can create additional cameras beyond 31, but they cannot be used for Game Object exclusion.

Returns:
Description:

The next available Camera ID, or 0 if they're all already in use.

Type:
  • number
Since: 3.11.0