Phaser API Documentation

  Version: 
clearMask([destroyMask])

Description:

Clears the mask that this Game Object was using.

Parameters:

name type arguments Default description
destroyMask boolean <optional> false

Destroy the mask before clearing it?

Returns:
Description:

This Game Object instance.

Since: 3.6.2