如何将按钮光标更改为手形?

How to change button cursor to hand?

我正在使用此代码创建按钮:

var button = game.add.button(0, 0, "background", this.buttonClick, this, 2, 1, 0);

创建按钮后有光标手。 之后在中间我需要禁用按钮所以我添加这一行:

button.input.enabled = false;

最后我添加了这一行以再次启用按钮:

button.input.enabled = true;

按钮在这里启用,我可以点击它,但光标是指针,而不是手。

试图用这条线解决但没有成功:

button.useHandCursor = true;

如何解决?

我现在意识到我必须使用:

button.input.useHandCursor = true;

而不是

button.useHandCursor = true;