Skip to content

Settings for Windows

Nate River edited this page Feb 4, 2024 · 8 revisions

Unity doesn't support deep linking for Windows (UNITY_STANDALONE_WIN).

Option 1 (default): Deep Linking Agent

  • You should enable Force Single Instance in Player Settings to use this option. The app will register URL Protocol in Registry and create Deep Linking Agent that will bypass an auth code to the app. The app will be resumed automatically after sign-in. To use this option, you must create iOS credentials and set Client Id Windows and Custom Uri Scheme Windows (leave Client Secret Windows empty). You can use generic credentials (the same as for Android, iOS and UWP). If your app is available for both Windows (UNITY_STANDALONE_WIN) and UWP (UNITY_WSA), it's recommended to create different credentials with different Custom Uri Scheme (to avoid conflicts).
  • .NET Framework should be used instead of .NET Standard because Registry is used with this option.

Option 2: Loopback Flow

  • Redirect to localhost will be used to obtain an auth code. After sign-in, users will be asked to close the browser tab and return to the app. To use this option, you must create Desktop credentials and set Client Id Windows and Client Secret Windows in Settings (leave Custom Uri Scheme Windows empty). This options is also used in Unity Editor.

Clone this wiki locally