Search

Unity Integration

The STOVE platform for games provides integrated services. All processes of game release, including game distribution and sales, community, and indicator analysis, can be handled in one-stop. With the PC SDK (Unity, hereafter referred to as PC SDK), you can easily integrate the services provided by the Stove platform into your game.

Prerequisite

SDK Integration

If this is the first time you are trying to integrate PC SDK, please read Unity (Follow Through) first. If you have trouble with integration, consider using Integration Kit, on the right.
For games with online feature, you must integrate the following 1) Prevention of excessive immersion in games (click here) 2) Shutdown ⇒ only for games with age rating of below 19. (click here) If you have any questions, feel free to contact STOVE Store Support.

SDK Toolkit

1. Download the SDK kit below, unzip it, and copy the files inside and paste them into the Assets Folder.
2. Go to Project Settings > Player, and make sure that the correct Api Compatibility Level is configured.
3. Open your Startup Scene and drag in Platform Manager and Stove Manager prefab into the scene. You can find the prefabs in Assets > Prefab > Platform Folder.
4. Select Platform Manager in the scene and drag in Stove Manager into the corresponding field in the Inspector Panel.
5. Select Stove Manager in the scene and fill in necessary values into the corresponding fields in the Inspector Panel. Please find the value list below the screenshot.
6. Go to Assets > Settings > Platform and you will find Platform Setting file. Click it and make sure the Platform Type is set to Stove.
7. And… that’s it! You have completed the basic integration!

Get User Information

You can get user information via object shown below.
StoveManager.User
C#
복사

Get User Member No.

StoveManager.User.MemberNo
C#
복사

Get User Nickname

StoveManager.User.Nickname
C#
복사

Get User GUID

StoveManager.User.GameUserID
C#
복사

Get Access Token

StoveManager.Token.AccessToken
C#
복사

Retrieve User Profile Image

For retrieving user profile image, you need to fetch it via API endpoint.
domain: https://api.onstove.com GET /postie/v1.0/user/{member_no} Request Header - Authorization: {access_token} Response { "code" : 0, "message" : "success", "value" : { "user_id" : "123456789", "nickname" : "John Doe", "profile_img" : "http://image-dev.onstove.com/180x180/http://d2eq8hyjn4yxr6.cloudfront.net/dev/member_no/301028/application_no/53042/timeline/undefined/file_name.jpg", "score" : 12 } }
Plain Text
복사

Achievement Integration

1. In order to unlock a certain achievement, you can follow the code template shown below. Since we will be determining the platform type via PlatformSetting Scriptable Object, make sure to drag it in in the Inspector Panel.