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