> For the complete documentation index, see [llms.txt](https://docs.febucci.com/text-animator-unity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.febucci.com/text-animator-unity/3.x-zh/da-zi-ji/da-zi-shi-deng-dai-dong-zuo/waitinput-dong-zuo.md).

# WaitInput 动作

您可以使用 WaitInput 动作来暂停打字机，直到 **玩家执行任意输入，或者某个特定输入**，之后才继续。

<figure><img src="/files/3fdc691dfbf962e92ee09047a1bf5fac261463a1" alt=""><figcaption><p>当打字机显示带有“&#x3C;waitinput>”的那部分文本时，这将等待任意输入， </p></figcaption></figure>

如果您想要 **等待某个特定动作**，请在 Input Mode 字段中设置“Specific Action”。然后您将能够映射哪个字符串对应哪个动作，并像下面这样使用该参数（基于以下示例）：

* "`<waitinput=click>`”用于等待“UI/Click”动作
* "`<waitinput=attack>`”用于等待“Player/Attack”动作

<figure><img src="/files/1e6f0cb6059caad5b3c56d9bf69b7d12da94c94a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
如果您不设置任何键，则会改用“Default Input Key”。
{% endhint %}

{% hint style="success" icon="thumbs-up" %}
您也可以将“any”用作参数，其返回结果与 InputMode=AnyInput 相同
{% endhint %}

P.S. 动作必须启用才能生效。您可以手动启用它们，或者查看检查器末尾的选项（我们建议保持它们启用）。

{% hint style="warning" %}
在 Legacy Input System 中无法设置特定动作。
{% endhint %}
