Skip to main content
Folder: Assets/_MolcaSDK/Code/Scripts/Auth/
TypeRole
AuthUIBinds buttons/fields to ScenarioSessionManager login methods
UserDataLocal user model / cache for UI

Code

AuthUI wires inspector references to AuthManager on the RuntimeManager prefab. The same calls work from your own UI code:
using Molca;
using Molca.Networking.Auth;
using UnityEngine;

public class CustomLogin : MonoBehaviour
{
    public async void Login(string user, string pass)
    {
        await RuntimeManager.WaitForInitialization();
        var ok = await RuntimeManager.GetSubsystem<AuthManager>().LoginAsync(user, pass);
        Debug.Log(ok ? "OK" : "Failed");
    }
}

Unity Editor

AuthUI component on Auth VR canvas with serialized field wiring.

AuthUI in Unity Inspector