Step 3. Add KTplay Prefab to your Scene

Drag and drop the KTPlay prefab found at /Assets/KTPlay/KTPlay to your Unity scene in the Scene view.

This Prefab will automatically handle basic SDK behavior like initialization.

Step 4. Integrate Key Feature Modules

After finished above steps, you can start integrate required feature such as Community, In-Game Messaging. Features integration guide are listed here.

2. Points to be Aware

2.1 Compatible with Unity Editor

KTplay features will work on iOS/Android device only, that is, when under Unity 's Editor mode, KTplay features will be disabled, but will not affect game operation.

2.2 Supports For iOS 10.0

From Apple's announcement, To protect user privacy, an iOS app linked on or after iOS 10.0, and which accesses the user’s photo library,must statically declare the intent to do so. Include the NSPhotoLibraryUsageDescription key in your app’s Info.plist file and provide a purpose string for this key. If your app attempts to access the user’s photo library without a corresponding purpose string, your app exits.

Open project's info.plist (Open As Property List）

Add new field NSPhotoLibraryUsageDescription as String, and set value to following content: Allow access your photos so you can share them with other players.

The following is an example of modified info.plist (Open As Source Code).

<key>NSPhotoLibraryUsageDescription</key>
<string>Allow access your photos so you can share them with other players.</string>

2.3 Setup KTplay Window Orientation

In Unity, open file Assets/KTPlay/Scripts/KTSettings, and setup ScreenOrientation.