Skip to content

How to use Unity SDK

YoonSeok Hong edited this page May 17, 2016 · 2 revisions

1. Clone Source Code here

https://github.com/CloudBreadProject/CloudBread-Unity-SDK

2. Import CloudBread Unity SDK

Import CloudBread-Unity-SDK-master – Asset – CloudBread floder Unity CloudBread SDK)

Unity editor) As you can see, CloudBread menu is appeared

3. Import PostMan files

4. Generate API, you want to use

Search APIs, you want to use, and Generate Client File button Click

5. Change CloudBread Address demo server into your Server

CloudBread – Resources – CB.Settings Click

Unity CloudBread settings)

Here, you can change settings about server address and encrypt keys

6. Call APIs when you want to use

fill data needed when you request Post, Like Next.

var postData = new CloudBread.CloudBread.PostCBSelGameEvents {
    memberID = "aaa"
};
CloudBread.CloudBread.RequestCBSelGameEvents (postData, callback);

You can receive Response data as Callback.

public void callback(CloudBread.CloudBread.ReceiveCBSelGameEvents[] callbackData)
{
    print (callbackData.ToString ());
}
Clone this wiki locally