> 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/contributor/contributor-ko/scene-runtime/overview.md).

# 개요

Decentraland 씬 런타임은 샌드박스화된 실행 환경으로, 하나의 [씬](https://github.com/decentraland/docs/blob/main/content/entity-types/scenes.md) 가 메인 스크립트를 실행합니다.

각 씬은 자체적으로 분리된 런타임에서 실행됩니다. 그 안에서 씬은 특정한 [전역 객체](https://github.com/decentraland/docs/blob/main/contributor/globals.md) 를 사용할 수 있으며 [모듈을](https://github.com/decentraland/docs/blob/main/contributor/modules.md) 런타임 라이브러리에서 가져올 수 있습니다.

{% @mermaid/diagram content="flowchart TB
subgraph WorldExplorer\["World Explorer"]
subgraph Runtime1\["Runtime 1"]
Scene1\["Scene"]
end

```
    subgraph Runtime2["Runtime 2"]
        Scene2["Scene"]
    end
    
    subgraph Runtime3["Runtime 3"]
        Scene3["Scene"]
    end
    
    Scene1 --> Library["Runtime Module Library"]
    Scene2 --> Library
    Scene3 --> Library
end" %}
```

런타임 라이브러리에서 모듈을 가져오면, 씬은 다음을 포함한 다양한 기능을 사용할 수 있습니다:

* 엔티티를 생성하고 동작을 제어하기
* 플레이어와 상호작용하기
* 다른 플레이어와 소통하기
* 월드의 상태를 살펴보기
* 외부 서비스에 연결하기
* web3 결제를 하기

실제로 씬은 [Decentraland SDK](https://github.com/decentraland/docs/blob/main/contributor/creator/sdk7/getting-started/sdk-101.md) 를 코드와 함께 번들로 포함하는데, 이는 런타임 라이브러리의 RPC 스타일 인터페이스를 캡슐화하고 더 깔끔하고 편리한 API를 제공합니다.

{% hint style="info" %}
SDK는 *아니며* Decentraland 프로토콜의 일부가 아닙니다. 더 낮은 수준의 인터페이스만 프로토콜의 일부입니다. 씬은 SDK를 번들로 포함할지 대체 라이브러리를 사용할지 결정할 수 있습니다.
{% endhint %}

### 전역 객체

샌드박스화된 환경에서는, [장면](https://github.com/decentraland/docs/blob/main/content/entity-types/scenes.md) 특정 객체와 함수가 전역적으로 사용 가능하다고 가정합니다. 일부는 다음과 같은 표준 ES2020 객체입니다( `Date` 또는 `Math`), 그리고 다른 것들은 모듈을 require하거나, 메시지를 기록하거나, 콜백을 예약하는 등의 기능을 구현하기 위해 런타임에 의해 주입됩니다.

참고 [전역 객체](https://github.com/decentraland/docs/blob/main/contributor/globals.md) 에서 자세한 내용을 확인하세요.

### 모듈

이 [`require`](https://github.com/decentraland/docs/blob/main/contributor/globals.md#module) 전역 함수는 다음이 제공하는 모듈을 가져올 수 있습니다 [런타임 라이브러리](https://github.com/decentraland/docs/blob/main/contributor/execution.md). 이러한 모듈을 사용하면 ECS나 Communications 시스템과 같은 유틸리티를 선택적으로 가져올 수 있습니다.

전체 목록은 런타임 모듈 섹션을 참조하세요.

### 실행

런타임은 씬이 특정한 메서드 집합을 구현하도록 요구하며, 해당 메서드가 특정 규칙에 따라 호출됨을 보장합니다.

참고 [실행](https://github.com/decentraland/docs/blob/main/contributor/execution.md) 자세한 내용은 이 섹션을 참조하세요.

### 권한

서드파티 서비스에 HTTP 요청을 보내는 것과 같은 민감한 기능은, 다음에 의해 특정 권한이 요청되지 않는 한 런타임에서 제한됩니다: [씬](https://github.com/decentraland/docs/blob/main/content/entity-types/scenes.md), 그리고 플레이어가 이를 승인해야 합니다.

참고 [권한](https://github.com/decentraland/docs/blob/main/contributor/permissions.md) 자세히 알아보세요.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.decentraland.org/contributor/contributor-ko/scene-runtime/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
