Search code examples
unity-game-enginepaaskiicloud

Sample Kii Cloud code for Unity


I'm testing Kii Cloud's Unity SDK and I'm in desperate need for a sample. I'm trying to use the user management feature. A user registration form takes user data and I call Kii Cloud user registration API. I get an exception when calling user.Register(password) with little useful data (but it looks like it could be a connectivity issue):

KiiCorp.Cloud.Storage.NetworkException: network related exception ---> System.Net.WebException: Error: ConnectFailure

Could anybody provide a user registration sample for Kii Cloud in Unity? Anybody had issues registering users?

Thanks


Solution

  • Which platform are you building for when getting the exception? If you're on web player try to switch to native win/mac. The problem might be related to the lack of network access in a sandboxed environment.

    With regards to samples check these two:

    https://github.com/KiiPlatform/KiiUnitySDKSamples

    https://github.com/KiiPlatform/UnityAngryBotsKii

    Happy coding!