UIToolkit Example
In a Unity scene, add the UiToolkit authenticator handler prefab i.e. UIToolkit .
Add the specific authenticators that will be used e.g. AnchorWallet or WAX Cloud Wallet as prefabs to the scene and specify them in the handler that was added in Step 1.
Create a new script inheriting from MonoBehaviour, add a public member of type
UnityUiToolkitUAL
and assign it in the editor.In the Start-method, instantiate/initialize the respective 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 ( UnityUiToolkitUAL.OnUserLogin += MyLoginCallback;
) to get the User
object. Click here for more information.
UiToolkit
Last updated