WAX Unity Web3 Suite
AuthenticatorLibrary
AuthenticatorLibrary
  • Getting Started
  • Installation
    • WebGL Insatallation
  • Examples
    • Getting Started
      • Canvas Example
      • UIToolkit Example
    • User Data
    • Token Transfer
    • Transact
  • API Docs
    • Canvas
      • UnityCanvasUAL
    • UiToolkit
      • UnityUiToolkitUAL
      • AuthenticatorButtonItem
      • AuthenticatorsPanel
      • BasicControl
      • ScreenBase
      • Utils
    • Authenticators
      • Anchor
        • AnchorAuthenticator
        • AnchorUser
        • AnchorWalletConfig
      • WaxCloudWallet
        • WaxCloudWalletAuthenticator
        • WaxCloudWalletConfig
        • WaxCloudWalletUser
    • Authenticator
    • User
    • AuthenticatorResponse
    • ButtonStyle
    • Chain
    • Utils
    • RpcEndpoint
    • SignTransactionResponse
    • UALOptions
    • UalConstants
    • UalError
    • UnityUAL
Powered by GitBook
On this page
Edit on GitHub
  1. Examples

User Data

PreviousUIToolkit ExampleNextToken Transfer

Last updated 2 years ago

To get the user that has logged in and to use the data to sign a transaction do the following:

  1. After setting up a scene as explained , add a memeber of type User

  2. Create a new method (which should match the one called by the action in the section) and pass a User parameter.

  3. Then assign the parameter to the variable of type User.

This is most effective when assigned as an event handler/callback .

UnityXXXUal.OnUserLogin += [UserLoggedInCallback];
here
getting started
Page cover image