Phaser API Documentation

  Version: 
destroy()

Description:

Destroys this GeometryMask and nulls any references it holds.

Note that if a Game Object is currently using this mask it will not automatically detect you have destroyed it, so be sure to call clearMask on any Game Object using it, before destroying it.

Since: 3.7.0