# 입력 중 대기 동작

<mark style="color:기본값;background-color:yellow;">**타자기가 텍스트의 특정 위치에 도달하면 동작을 수행할 수 있습니다**</mark>. *이 때문에, 동작은 타자기가 활성화되어 있을 때만 작동합니다.*

예: X초를 기다리거나 플레이어 입력을 기다리는 것.

***

## 텍스트에 동작을 추가하는 방법 <a href="#how-to-add-actions-in-your-text" id="how-to-add-actions-in-your-text"></a>

리치 텍스트 태그를 사용하여 텍스트에 동작을 추가할 수 있습니다.

동작의 형식은 다음 공식을 따릅니다: “`<actionID>`” 또는 “`<actionID=attribute1,attribute2,...>`” 는 가능한 매개변수/속성입니다(이벤트/메시지와 마찬가지로).

{% hint style="warning" %}
동작 태그는 대소문자를 구분하지 않으며, `<waitfor>` 과 `<waitFor>` 는 동일한 결과를 생성합니다.
{% endhint %}

#### 매개변수 <a href="#parameters" id="parameters"></a>

동작은 ‘`=`’ 기호 뒤에 여러 매개변수를 지원하며, 모두 다음으로 구분됩니다 `쉼표`.

예: `<waitfor=1.5>` 또는 `<playaudio=tada,laugh,dub>`

* ⚠️ 부동소수점 숫자는 다음을 사용해야 합니다 `점`, 다음이 아니라 `쉼표`.
  * ✔️ \<speed=0.5>
  * ❌ \<speed=0,5>

***

## 데이터베이스 <a href="#databases" id="databases"></a>

효과와 마찬가지로, 동작은 데이터베이스 안에 저장되어 있습니다. 원하는 만큼 추가하고 제거할 수 있으며, 특정한 것을 만들고 또한 [C#을 통해 직접 프로그래밍할 수도 있습니다](/text-animator-unity/3.x-ko/writing-custom-classes/c-2.md).

## 내장된 a <a href="#built-in-actions" id="built-in-actions"></a>

다음의 내장 동작을 텍스트에서 사용할 수 있습니다.

<table data-view="cards"><thead><tr><th></th><th></th><th>태그</th><th>속성</th><th>예제</th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>초 대기</strong></td><td>텍스트 표시를 계속하기 전에 X초 동안 기다립니다</td><td>waitfor</td><td>float(대기 시간)</td><td>&#x3C;waitfor=3></td><td><p></p><p></p></td><td></td><td></td></tr><tr><td><strong>입력 대기</strong></td><td>플레이어 입력을 기다립니다. 자세한 문서는 여기: <a data-mention href="/pages/301be9cf12f83b3cc873df9b1edb804a0229c2ba">/pages/301be9cf12f83b3cc873df9b1edb804a0229c2ba</a></td><td>waitinput</td><td>입력에 따라. <a href="/pages/301be9cf12f83b3cc873df9b1edb804a0229c2ba">여기에서 더 읽기</a>.</td><td>&#x3C;waitinput></td><td><p></p><p></p></td><td></td><td><a href="/pages/301be9cf12f83b3cc873df9b1edb804a0229c2ba">/pages/301be9cf12f83b3cc873df9b1edb804a0229c2ba</a></td></tr><tr><td><strong>속도</strong></td><td>타자기 속도를 곱합니다</td><td>speed</td><td>float(속도 배율)</td><td>&#x3C;speed =2></td><td></td><td></td><td></td></tr></tbody></table>

## 컴포넌트 동작

일부 동작은 씬에 존재할 때만 사용할 수 있습니다(컴포넌트로 생성해야 합니다).

<table data-view="cards"><thead><tr><th></th><th></th><th>태그</th><th>속성</th><th>예제</th><th data-hidden></th><th data-hidden></th></tr></thead><tbody><tr><td><strong>사운드 재생</strong></td><td>오디오 소스(인스펙터에서 참조됨)를 재생하고 끝날 때까지 기다립니다</td><td>psound</td><td>해당 없음</td><td>&#x3C;psound></td><td><p></p><p></p></td><td></td></tr></tbody></table>

### 로컬 동작

동작을 *로컬*로 만들 수 있으며, 이는 타자기 컴포넌트 옆에 생성한 경우에만 인식된다는 뜻입니다. (다음에 대해서만 작동합니다 **TextMeshPro**)

<figure><img src="/files/d9903b7123855848f49c12a0bcf16f0162cf58c0" alt=""><figcaption></figcaption></figure>

### 전역 동작

전역 동작은 현재 씬에서 타이핑 중인 모든 타자기가 접근할 수 있으며, "전역으로 사용 가능"을 켜 두기만 하면 됩니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.febucci.com/text-animator-unity/3.x-ko/typewriter/wait-actions-when-typing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
