Runtime

Method Calls

  • Auth.HandleAuthProcessAsync

  • Auth.CancelAuthProcess

  • Auth.DisconnectFromMeshMapAccount

Events

  • Auth.OnCodeGenerated

  • Auth.OnCodeValidated

  • Auth.OnAuthenticated

  • Auth.OnAuthenticationCancelled

  • Auth.OnAuthenticationFailed

  • Auth.OnDisconnected

Getting Started

The easiest way to get started is to import the Auto and Scan Import sample into your Unity project. Go to Windows > Package Manager > MeshMap Unity SDK > Samples.

Make sure to configure your API key in the MeshMap Hub

Features

  • A simple user flow for MeshMap account login and logout.

    • Generates a 6-digit verification code to enter in the MeshMap web app. The player may be prompted to login or create a MeshMap account.

  • Persistent authentication status using PlayerPrefs. Deleted on log out.

Components

Class
Description

Handles the authentication UI logic for logging into a MeshMap account, including auth code generation, validation, cancellation, and feedback display.

Handles the logout process, including PlayerPrefs deletion, UI transitions, and event signaling.

Last updated