PlayCanvas Login & Auth minimal example
Learn how to add VIVERSE login and authentication features into your standalone PlayCanvas game
Pre-requisite: Create a World and App ID in VIVERSE Studio


Step 1: Create a new PlayCanvas project and add the VIVERSE SDK as an external script

Step 2: Initialize the SDK in a new .mjs script
Step 3: Check whether users are logged in
Step 3: Add attribute reference and UI elements

Step 5: Hook SDK code into UI
Step 6: Export and Publish to VIVERSE



Final Build

Last updated
Was this helpful?