Page cover
githubEdit

Canvas Example

  1. In a Unity scene, add the Canvas authenticator handler prefab i.e. Canvasarrow-up-right.

  2. Add the specific authenticatorsarrow-up-right that will be used e.g. AnchorWalletarrow-up-right or WAX Cloud Walletarrow-up-right as prefabs to the scene and specify them in the handler that was added in Step 1.

  3. Create a new script inheriting from MonoBehaviour, add a public member of type UnityCanvasUAL and assign it in the editor.

  4. In the Start-method, instantiate/initialize the handler prefab added above and add an action when the user login is successful.

N.B. Ensure that you assign an event handler/callback for the login ( UnityCanvasUAL.OnUserLogin += MyLoginCallback;) to get the User object. Click herearrow-up-right for more information.

Canvas

   UnityCanvasUAL.OnUserLogin += UserLogin;
   await UnityCanvasUAL.Init();

Last updated