> For the complete documentation index, see [llms.txt](https://docs.wepin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wepin.io/deprecated/unity-sdk/installation.md).

# 설치

## 설치하기 <a href="#installation" id="installation"></a>

Wepin Unity SDK 를 설치하는 방법을 설명합니다.

### Github에서 다운로드  받기 <a href="#download-it-from-github" id="download-it-from-github"></a>

Wepin Unity SDK 는 [wepin-unity-sdk Github](https://github.com/WepinWallet/wepin-unity-sdk)에 배포되어 있습니다. Github에서 <mark style="color:blue;">`wepinSDK_vX.X.X.unitypackage`</mark>파일을  다운로드하고 패키지 파일을 Unity3D 프로젝트에 import 합니다.&#x20;

이 패키지를 가져올 때 아래와 같은 오류가 발생하는 경우,

```
The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
```

프로젝트 루트에  dependency "com.unity.nuget.newtonsoft-json": "3.0.2" Packages/manifest.json 파일을 추가해  주세요.

## iOS 인 경우 <a href="#for-ios" id="for-ios"></a>

### Info 파일 수정하기 <a href="#modify-info-file" id="modify-info-file"></a>

&#x20;Xcode에서 앱의 Info파일에 URL Schemes를 등록해야 합니다.

URL Schemes의 값은 <mark style="color:blue;">`앱의 Bundle ID + .wepin`</mark> 으로 해야 합니다.&#x20;

{% hint style="danger" %}
앱의  Bundle ID 에 '+', '-', '.' 이외의 다른 특수 문자는 포함하지 않습니다.  \
(참고: <https://datatracker.ietf.org/doc/html/rfc2396>)
{% endhint %}

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

## Android 인 경우  <a href="#for-android" id="for-android"></a>

### AndroidManifest 수정하기  <a href="#modify-androidmanifest" id="modify-androidmanifest"></a>

위핀을 사용하고자 하는 앱의 AndroidManifest.xml을 수정해야 합니다.

#### 퍼미션 추가하기

위핀을 사용하고자 하는 앱의  메인 Activity에 아래와 같이 퍼미션을 추가합니다.&#x20;

```xml
<uses-permission android:name="android.permission.INTERNET" />
```

#### Activity의 인텐트 필터 추가

Activity의 인텐트 필터를 앱의 AndroidManifest.xml 에 추가해야 합니다. 이 때 추가하는 스키마 값은 <mark style="color:blue;">`앱의 package 이름 + .wepin`</mark> 으로 추가해야 합니다.

{% hint style="danger" %}
앱의 package 이름에 '+', '-', '.' 이외의 다른 특수 문자는 포함하지 않습니다.  \
(참고: <https://datatracker.ietf.org/doc/html/rfc2396>)
{% endhint %}

```xml
  <activity android:name="com.unity3d.player.UnityPlayerActivity"
    ....
  >
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="PACKAGE_NAME.wepin"/> <!-- package name of your android app + '.wepin' -->
      </intent-filter>            
    ....
  </activity>
```

## 릴리즈  <a href="#release" id="release"></a>

릴리즈된 패키지 버전은 아래 깃허브에서 확인 가능합니다.

{% embed url="<https://github.com/WepinWallet/wepin-unity-sdk>" %}


---

# 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.wepin.io/deprecated/unity-sdk/installation.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.
