Phaser API Documentation

  Version: 
disable(gameObject)

Description:

Disables Input on a single Game Object.

An input disabled Game Object still retains its Interactive Object component and can be re-enabled at any time, by passing it to InputPlugin.enable.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object to have its input system disabled.

Examples:
Since: 3.0.0
Source: src/input/InputPlugin.js (Line 828)