Version: 2022.2
言語: 日本語
macOS 用の開発
IL2CPP を macOS で使用する

Deep linking with macOS

Deep links are URL links outside of your application that direct users to a location in your application. When the user clicks a deep link for an application, the operating system opens the Unity application at a specified place (for example, a specific scene). For more information about deep links and how to use them, refer to Deep links.

Enable deep linking for macOS applications

Before you can process deep links, you need to configure your application to react to them. This section has instructions on how set up deep links for macOS.

There are two ways to enable deep linking for macOS applications: URL schemes and universal links.

URL スキーム

URL スキームは、iOS アプリケーションが反応するリンク構造を指定します。デバイスがこの構造に一致するディープリンクを処理すると、デバイスはアプリケーションを開きます。URL スキームを加えるには以下を行います。

  1. Open the Player Settings window from Edit > Project Settings > Player Settings.
  2. Select Windows, Mac, Linux settings.
  3. Select Other Settings, then scroll down to Mac Configuration.
  4. Expand the Supported URL schemes section and, in the Element 0 field, enter the URL scheme to associate with your application. For example, unitydl.

Your macOS application now opens when the device processes any link that starts with unitydl://.

ユニバーサルリンク

ユニバーサルリンクを有効にする方法については、Apple のドキュメント Allowing Apps and Websites to Link to Your Content を参照してください。

Use deep linking on macOS

After you enable deep links for macOS, the way that you use them is platform-agnostic. For information on how to handle deep links when your application opens, refer to Using deep links.

macOS 用の開発
IL2CPP を macOS で使用する