Version: 2022.2
Language : English
Create a native plug-in for Android
Call native plug-in for Android code

Import a native plug-in for Android

This page describes how to import a native plug-in for Android into your Unity Project.

  1. Copy the plug-inA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
    See in Glossary
    to your Unity Project’s Assets folder.
  2. Select the plug-in in Unity and view it in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    .
  3. In the Select platforms for plugin section, select Android.
  4. In the Platform settings section, set CPU to the CPU architecture that you built the plug-in for.
  5. Select Apply.

Additional resources

Create a native plug-in for Android
Call native plug-in for Android code
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961