> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-ko/scene-editor/interactivity/trigger-area.md). Agents can also search and read this documentation through its [MCP server](https://docs.decentraland.org/~gitbook/mcp).

# 트리거 영역

플레이어의 위치에 반응

플레이어가 영역에 들어오거나 나갈 때 어떤 동작이 실행되게 하려면 트리거 영역을 사용하세요. [스마트 아이템](https://docs.decentraland.org/creator/content-creator-ko/scene-editor/interactivity/smart-items.md).

![](https://3980763956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-43dc86c2583a9d24ad70791dc7cdbdc7d4462d0c%2Ftrigger.webp?alt=media)

장면을 편집할 때 보이는 주황색 큐브는 장면 편집기에서만 표시되며, 장면 미리보기를 실행하면 보이지 않습니다. 주황색 큐브의 위치와 크기를 쉽게 조정해 필요한 영역을 정확히 덮을 수 있습니다.

장면으로 드래그한 다음 스케일 조정 기즈모로 크기를 바꾸세요. 보이는 상자나 구체는 편집기에서만 표시되며, 플레이어에게는 보이지 않습니다.

플레이어 아바타의 일부라도 이 주황색 큐브와 겹치면 지정된 이벤트가 호출됩니다. 트리거 영역은 다른 플레이어의 아바타가 아니라 로컬 머신의 플레이어에만 반응합니다. 각 플레이어는 자신의 장면 인스턴스에서 트리거를 실행합니다.

{% hint style="info" %}
**💡 팁**: 장면의 트리거 영역이 다른 콘텐츠를 편집하는 데 방해가 되기 시작하면, 언제든지 트리거 영역을 잠그거나 숨길 수 있다는 점을 기억하세요.  [엔티티 트리에서](https://docs.decentraland.org/creator/content-creator-ko/scene-editor/get-started/scene-editor-essentials.md#the-entity-tree).

<img src="https://3980763956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-904b0f80a11ab2704ee6162f9879b365f1dbc165%2Fhide-trigger.webp?alt=media" alt="" data-size="original">
{% endhint %}

여러 트리거 영역이 서로 겹쳐도 서로 영향을 주지 않습니다.

무엇이 일어나야 하는지 설명하고 [AI 어시스턴트](https://docs.decentraland.org/creator/content-creator-ko/scene-editor/extend-with-code/ai-assistant.md) 이를 위한 간단한 스크립트를 작성합니다.

### 설정

항목의 **스크립트** 구성 요소에는 두 개의 필드가 있습니다:

| 필드         | 기능                  | 옵션                                                                                          | 기본값         |
| ---------- | ------------------- | ------------------------------------------------------------------------------------------- | ----------- |
| **활성화 조건** | 영역을 구분하는 요소입니다.     | `my player`, `all players`, `any collider`, `clickable`, `custom 1`, `custom 2`, `custom 3` | `my player` |
| **모양**     | 볼륨이 상자인지 구인지 지정합니다. | `box`, `sphere`                                                                             | `box`       |

`my player` 현재 장면을 실행하는 플레이어의 아바타에만 반응합니다. `all players` 장면에 있는 다른 사람을 포함해 모든 아바타에 반응합니다. 나머지 옵션은 다른 [충돌 레이어](https://docs.decentraland.org/creator/content-creator-ko/sdk7/3d/colliders.md)와 일치하므로, 영역이 물리 오브젝트나 클릭 가능한 오브젝트 또는 직접 만든 레이어에 반응하도록 설정할 수 있습니다.

전환 **모양** 편집기 자리 표시자를 상자와 구체 사이에서 전환하므로, 편집 중에 보이는 형태가 실제로 얻을 볼륨과 같습니다.

### 어떤 동작이 일어나야 하는지 설명하세요

영역은 두 가지 이벤트를 발생시킵니다. **진입** 및 **이탈**입니다. Script 구성 요소의 **반응** 섹션에는 각 이벤트에 해당하는 버튼이 하나씩 있습니다.

* **플레이어가 들어올 때…**
* **플레이어가 나갈 때…**

항목을 클릭하면 Creator Hub가 AI Assistant의 메시지 입력란에 문장의 앞부분을 입력합니다. 예를 들어 `플레이어가 "Trigger Area"에 들어오면,` . 프롬프트에는 엔티티 트리에서 보이는 항목 이름이 사용됩니다. 원하는 동작을 문장 뒤에 이어서 입력하고 전송하세요. 어시스턴트는 별도의 스크립트를 작성해 감지기와 함께 같은 엔티티에 연결합니다.

버튼 옆에 있는 세 가지 칩(**소리 재생**, **메시지 표시**, **점수 획득**)은 완성된 문장을 채워 주므로 그대로 전송할 수 있습니다.

{% hint style="info" %}
**💡 팁**: 반응 기능을 사용하려면 [AI Assistant](https://docs.decentraland.org/creator/content-creator-ko/scene-editor/extend-with-code/ai-assistant.md) 를 켜야 합니다. 켜져 있지 않으면 채팅을 여는 대신 Creator Hub에서 활성화 위치를 안내합니다.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-ko/scene-editor/interactivity/trigger-area.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
