Version: 2023.2
言語: 日本語
Android Archiveのプラグインをインポートする
Native plug-ins for Android

JAR plug-ins

You can use Java Archive (JAR) plug-ins to interact with the Android OS or to call methods written in Java from C# scripts.

Java Archive (JAR) plug-ins contain Java code that you can call from C# scripts. They’re useful if you want to interact with the Android operating system, or just call Java code from C#.

This type of plug-in is useful if you plan to reuse Java code in multiple projects, or distribute it to other people. If instead you only want to write a small amount of Java code for a single project, then a Java or Kotlin source code plug-in might be more appropriate.

Import a JAR plug-in

To import a JAR plug-in (AAR) plug-in into your Unity Project:

  1. Copy the .jar file to your Unity Project’s Assets folder.
  2. Select the .jar file in Unity and view it in the Inspector.
  3. Select platforms for plugin セクションで、 Android を選択します。
  4. 適用 を選択します。

その他の参考資料

Android Archiveのプラグインをインポートする
Native plug-ins for Android
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961