Skip to content

Commit 8c5cea0

Browse files
committed
Updated docs.
1 parent e050c39 commit 8c5cea0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/gameobjects/components/InputEnabled.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Phaser.Component.InputEnabled.prototype = {
3232
* Note that Input related events are dispatched from `this.events`, i.e.: `events.onInputDown`.
3333
*
3434
* If you set this property to false it will stop the Input Handler from processing any more input events.
35+
*
36+
* If you want to _temporarily_ disable input for a Game Object, then it's better to set
37+
* `input.enabled = false`, as it won't reset any of the Input Handlers internal properties.
38+
* You can then toggle this back on as needed.
3539
*
3640
* @property {boolean} inputEnabled
3741
*/

0 commit comments

Comments
 (0)