> 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/sdk7/interactivity/external-links.md).

# 외부 링크

다른 씬 또는 외부 사이트로 연결

씬에서 다른 씬이나 외부 웹사이트 등 다른 콘텐츠로 연결되는 링크를 추가할 수 있습니다.

## Creator Hub의 씬 편집기 사용

외부 링크나 텔레포트를 추가하는 가장 쉬운 방법은 씬 편집기를 사용하는 것입니다. 다음을 사용하세요. **텔레포트** [스마트 아이템](/creator/content-creator-ko/scene-editor/interactivity/smart-items.md) 을 사용해 Genesis City의 다른 씬으로 텔레포트하거나, 다음 중 하나를 사용하세요. **소셜 링크** 스마트 아이템을 사용해 외부 사이트로 연결되는 링크를 추가할 수 있습니다.

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

## 텔레포트

플레이어를 다른 씬으로 텔레포트하려면 다음 함수를 호출하고, 플레이어가 텔레포트할 좌표를 지정합니다.

```ts
import { teleportTo } from "~system/RestrictedActions"

(...)

teleportTo({ worldCoordinates: { x: -51, y: 1 } })
```

플레이어가 텔레포트되기 전에 확인 화면이 표시됩니다. 이 화면에는 목적지 씬의 정보가 표시됩니다. `scene.json file`에 포함된 씬의 `name`, `description` 및 `navmapThumbnail`가 표시됩니다. 데이터를 설정하는 방법에 대한 자세한 내용은 [씬 메타데이터](/creator/content-creator-ko/sdk7/kinds-of-projects/scene-metadata.md) 를 참조하세요.

텔레포트는 지정한 좌표에 있는 씬으로 이동시키지만, 반드시 해당 좌표로 이동시키는 것은 아닙니다. 따라서 여러 파슬이 있는 씬으로 이동할 때 플레이어는 지정한 좌표가 아니라 씬 제작자가 지정한 스폰 지점 중 한 곳에 도착할 수 있습니다.

현재 씬 안에서 플레이어를 다른 좌표로 이동하려면 대신 `movePlayerTo()` 함수를 사용하세요. 자세한 내용은 [플레이어 이동](/creator/content-creator-ko/sdk7/interactivity/avatars/move-player.md).

## WORLD로 텔레포트

플레이어를 Genesis City의 공개 지도에 게시되지 않고 별도의 [Decentraland WORLD](/creator/content-creator-ko/sdk7/publishing/publishing-options.md#decentraland-worlds)인 씬으로 보내려면 `realm` 을 `teleportTo()`.

```ts
import { teleportTo } from "~system/RestrictedActions"

(...)

teleportTo({ realm: 'mannakia.dcl.eth' })
```

`realm` 에는 `mannakia.dcl.eth`와 같은 월드 이름이나 realm URL을 지정할 수 있습니다.

worldCoordinates `가 없으면`플레이어는 목적지의 스폰 지점 중 한 곳에 도착합니다. 해당 월드의 특정 파슬을 선택하려면 좌표를 추가하세요.

```ts
// 특정 월드의 파슬 12,34에 도착
teleportTo({
	realm: 'mannakia.dcl.eth',
	worldCoordinates: { x: 12, y: 34 },
})
```

플레이어가 realm을 변경하기 전에 확인 화면이 표시됩니다. 화면에 다음과 같은 질문이 표시됩니다. *"이 월드에 입장하시겠습니까?"* 또한 목적지(월드 이름 또는 realm URL의 호스트)가 표시됩니다. 플레이어가 동의해야 이동이 진행됩니다.

월드에서 Genesis City로 플레이어를 돌려보내려면 `realm` 필드는 기본값이 Genesis City입니다.

{% hint style="warning" %}
**📔 참고**:  `realm`  필드를 사용하려면 `@dcl/sdk`  버전 7.28.0 이상이 필요합니다.
{% endhint %}

### changeRealm은 더 이상 사용되지 않습니다

이전 씬에서는 월드에 이동할 때 `changeRealm()` 을 사용했습니다. 여전히 작동하지만, 대신 `teleportTo({ realm })` 을 사용하세요. `changeRealm()` 에서도 확인 화면이 표시됩니다. 선택 사항인 `message` 필드는 기본 안내 문구만 대체합니다.

`changeRealm()` 은 플레이어가 안내 메시지를 수락하면 즉시 완료되며, 새 렐름이 실제로 활성화될 때까지 기다리지 않습니다. 따라서 `teleportTo()` 를 바로 뒤에 호출하면 **이전** 렐름을 대상으로 실행되어 플레이어가 잘못된 위치에 도착할 수 있습니다. `teleportTo({ realm })` 은 두 단계를 한 번의 호출로 처리하므로 이런 공백이 발생하지 않습니다.

## 외부 링크

외부 웹사이트 링크를 추가하려면 `openExternalUrl()` 명령을 사용하세요.

```ts
import { openExternalUrl } from '~system/RestrictedActions'

openExternalUrl({ url: 'google.com' })
```

플레이어에게 스팸을 보내는 등 이 기능을 악용하지 못하도록, 엔티티에서 명시적으로 클릭하거나 버튼 이벤트가 발생한 경우에만 `openExternalUrl` 을 호출할 수 있습니다. 타이머, 충돌 영역 또는 전역 클릭 이벤트의 결과로는 이 함수를 호출할 수 없습니다. 자세한 방법은 [버튼 이벤트](/creator/content-creator-ko/sdk7/interactivity/button-events/click-events.md) 를 참고하세요.

openExternalUrl `을 호출하면 확인 화면이 표시됩니다. 이 화면에서 플레이어는 링크가 연결되는 곳을 확인하고 해당 링크를 방문할지 거부할지 선택할 수 있습니다.` 이 링크는 새 탭에서 열리므로 Decentraland가 열린 원래 탭은 그대로 유지됩니다.

플레이어가

확인란에서 *이 도메인 신뢰* 를 선택하면, 같은 씬에서 같은 도메인으로 연결되는 링크인 한 세션 중에는 다시 확인 메시지가 표시되지 않습니다.

## 클립보드에 복사

문자열을 플레이어의 클립보드에 복사하려면 `copyToClipboard()`을 사용하세요. 그러면 플레이어가 Decentraland 채팅이나 컴퓨터의 다른 애플리케이션에서 *붙여넣기* 를 할 때 해당 문자열이 붙여넣어집니다.

```ts
import { copyToClipboard } from "~system/RestrictedActions"

copyToClipboard( { text: 'My text to copy' } )
```


---

# 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/sdk7/interactivity/external-links.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.
