Skip to content

Settings for Windows

Nate River edited this page Jun 1, 2024 · 5 revisions

Google

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

Option 1 (default): Deep Linking Agent

  • You should enable Resolution and Presentation > 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 performing sign-in.
  • Other Settings > Api Compatibility Level = .NET Framework should be set because Registry is available in this API only.
  • 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. You can pass different auth settings to auth object constructor.
    • For Google: 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).
    • For Microsoft: to use this option, Custom Uri Scheme should be set.

Option 2: Loopback Flow (Google and Microsoft only)

  • 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. This options is used for Editor mode by default.
    • For Google: 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).
    • For Microsoft: To use this option, leave Custom Uri Scheme empty.
Clone this wiki locally