docs.unity3d.com
    Show / Hide Table of Contents

    Generate your Personal Access Token (PAT)

    To generate your PAT, follow these steps:

    1. Log into the Digital Twin Dashboard.
    2. Select Developer Hub > Personal Access Tokens.
    3. Select the +Add New button to create a new PAT.
    4. Copy the PAT to your clipboard and save it to a secure location.

    Note: If a PAT is compromised, delete it and generate a new one.

    Inject the Personal Access Token in your application

    The CommandLineAccessTokenProvider tries to find a PAT in the following way:

    • From a command line argument passed to the application.

          ./MyApp.exe -UNITY_CLOUD_PERSONAL_ACCESS_TOKEN [MyAccessToken]
      

    The PersonalAccessTokenProvider tries to find a PAT in the following way:

    • From a UNITY_CLOUD_PERSONAL_ACCESS_TOKEN environment variable set before running the application.
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023