Folder:Documentation Index
Fetch the complete documentation index at: https://docs-unity.molca.id/llms.txt
Use this file to discover all available pages before exploring further.
Assets/_MolcaSDK/Code/Scripts/Auth/Namespace:
MolcaSDK.Auth
| Type | Role |
|---|---|
| AuthUI | Flat / guest login UI wired to AuthManager (RuntimeManager subsystem) — not the VR ScenarioSessionManager flow unless you bridge separately |
| UserData / SDKUserData | Guest display name payloads (GuestLogin) |
Code
Inspector-driven:AuthUI assigns TMP_InputField, error texts, SharedString nextSceneName, and guest panel buttons. On start it await RuntimeManager.WaitForInitialization(), registers AuthEvents.LoggedIn, and loads nextSceneName.value after a successful login.
Programmatic login (same as OnLoginClicked):
OnGuestClicked — confirmation modal then GuestLogin):
Troubleshooting
- Scene does not load after login —
AuthEvents.LoggedInmust fire;SharedStringnextSceneNamemust match a registered scene. CheckSceneLoadManager/ build settings. - Login always fails — Verify AuthManager subsystem, backend URL/auth config in your project, and that
LoginAsyncerrors surface (UI sets a generic invalid-credentials message onusernameErrorTextonly for the main path). - Guest panel stuck —
guestPanelShow/Hide is manual from buttons; ensureguestLoginCancelButtonclears the panel. - Start race —
AuthUIawaitsWaitForInitialization; do not callLoginAsyncfromAwakeon the same object before that completes.
Related
- RuntimeManager
- Session authentication — VR session / OTP
- Modal manager — guest confirmation
- GameManager — global HTTP UX (orthogonal to login)
Unity Editor
