WebGL

Unity WebGL

Platform-specific notes for Unity WebGL builds.

Current status

The CROSSx Unity SDK currently focuses on native platforms (Android, iOS, Windows/macOS). WebGL-specific integration (JavaScript bridge, jslib interop) is not yet implemented in the SDK.

Platform-specific behavior

On non-native platforms (including WebGL), the SDK falls back to UnityOAuthAdapter, which uses Application.OpenURL to open the OAuth browser flow. Deep link callback handling via Application.deepLinkActivated may have limited support in WebGL depending on the hosting setup.

Known limitations

  • No JavaScript bridge (jslib) is included in the SDK for WebGL interop.
  • OAuth popup/redirect flow requires the hosting page to handle callback routing.
  • Application.deepLinkActivated behavior in WebGL depends on browser and hosting configuration.

COOP / COEP headers

For OAuth popups, your server may need to configure COOP headers. See the Browser Compatibility Guide for details.


© 2025 NEXUS Co., Ltd. All Rights Reserved.