App 42 Unity3d Sdk

by shephertz
+

( Updated 5 hours ago )

App42 Unity3D SDK

OverView

App42 Unity3D SDK can be used to add backend to Unity3D application which can run on different platforms like Android/iOS/Windows phone/Web player/WebGL etc. App42 Unity3D SDK consists of seperate dll to be used for building on Windows Store and is available under 4.x/App42-Unity3D-SDK-WinRT folder of downloaded zip. However for rest of the platform is available inside 4.x/App42-Unity3D-SDK folder.

Integrating App42 Unity3D SDK in your app :

Import App42-Unity3D-SDK-X.X in your Assets directory or in the Assets/plugins directory.

Setting Up Windows Store Environment :

Creating apps for Windows Store platform you have to use both the dlls (i.e App42-Unity3D-SDK-X.X and App42-Unity3D-SDK-WinRT-X.X).

Set Up :

1. Create plugins directory in your Assets directory (i.e. Assets/plugins). Put the App42-Unity3D-SDK-X.X in plugins directory.

Windows Store SetUp

2. Click on App42-Unity3D-SDK-X.X.dll then you will see the checklist of Select platforms for plugin in your inspector window (By default it is cheked for Any Platform).

3. You have to manually check the platforms for which you want to build the app. Do not check WSAPlayer and must check Editor.

Windows Store SetUp

4. Now create a directory metro in plugins directory (i.e. Assets/plugins/metro).Put the App42-Unity3D-SDK-WinRT-X.X in metro directory.

Windows Store SetUp

5. Now Click on App42-Unity3D-SDK-WinRT-X.X.dll then you will see the checklist again of Select platforms for plugin in your inspector window (By default it is cheked for WSAPlayer) and leave it as it is.

Windows Store SetUp

6. At last just check the capabilities for Windows Store in Windows Store's Player Settings. Check InternetClient, InternetClientServer and PrivateNetworkClientServer.

Windows Store SetUp

Your setup for Windows Store is completed. You are ready to build and run your app.

Note:- The Synchronous APIs are removed from the SDK version 4.0 onwards.

For Unity version 4.6.x or below 4.6

If you are using Unity version 4.6.x or below 4.6 then you have to use App42 Unity3D SDK version below 4.0 (i.e 3.x and earlier) which consists of seperate dll to be used for building on Windows Phone and is available under x.x/App42-Unity3D-SDK-WP8 folder of downloaded zip. However for rest of the platform it is available inside x.x/App42-Unity3D-SDK folder.

If you are building an app for WP8, then you have to use our App42_Unity3D_SDK_WP8_x.x.dll. If you want to test your script in UNITY_EDITOR, then use a X509Certificates validator like this :-

#if UNITY_EDITOR
public static bool Validator (object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)
         {return true;}
#endif
void Start ()
{
#if UNITY_EDITOR
   ServicePointManager.ServerCertificateValidationCallback = Validator;
#endif
}

Third Party binaries and respective licenses used in App42 Unity3D SDK are listed below.

[LitJson] (http://lbv.github.io/litjson/)

  • This library and its documentation are dedicated to the public domain. It may be used by anyone, for any purpose, without restrictions.

[SimpleJSON] (http://wiki.unity3d.com/index.php/SimpleJSON)

Visit our Unity Developer home page to learn more about App42 Unity SDK and using our App42 SDK.

Note: Kindly raise a new issue here, if you find any bug using App42 Unity SDK.