Phaser API Documentation

  Version: 
maxSize: number

Description:

Containers can have an optional maximum size. If set to anything above 0 it will constrict the addition of new Game Objects into the Container, capping off the maximum limit the Container can grow in size to.

Type:
number
Default: -1
Since: 3.4.0