ASUS Aura Ready Game SDK Developer's Guide
Install Aura Ready Game SDK Plugin for Unity

  1. Before installing Aura Game SDK Plugin for UE4, the Aura SDK Lighting Service, Aura Layer Manager and Game SDK should be installed first. See Installation for details.
     
  2. Unzip the GameSDK Unity Plugin vx.x.x.zip and get get AsusGameSDKWrapper.dll.
     
  3. In Unity, select Assets -> Import New Asset, and locate AsusGameSDKWrapper.dll that you got in previous step.


     

  4. Create a behaviour and associate it with an object in the scene. In this example, we create Cube object, and then a CubeBehaviour that associates with it.


     

  5. Now it's time to edit CubeBehavior.cs for Aura Ready Game SDK features. First of all, you need to import AURA namespace by using AsusGameSDKWrapper:
    Definition: Class1.cs:21

     
  6. We need a data member to handle AsusGameSDKService object:
    public class CubeBehaviour : MonoBehaviour
    {
    private AsusGameSDKService gameService = null;
    //...

     
  7. In Start(), we can initialize GameSDK by creating the AsusGameSDKService object. A try/catch block is used here in case there is something bad happened while initialization. Note that AsusGameSDKService.Init( ) must be called right after the AsusGameSDKService object has been created.
    try
    {
    gameService = new AsusGameSDKService();
    gameService.Init();
    }
    catch (System.Exception)
    {
    gameService = null;
    }

     
  8. Before the application exits, AsusGameSDKService.DeInit() needs to be called. It can be done in the OnApplicationQuit() method:
    void OnApplicationQuit()
    {
    if (gameService != null)
    {
    gameService.DeInit();
    }
    }

     
  9. It's done. Now we can try to run this application.