Building plug-ins for desktop platforms
Introduction to native plug-in API

Native plug-in APIs

Access Unity Editor and Engine functionality such as low-level graphics device features, rendering, shaderA program that runs on the GPU. More info
See in Glossary
compiler, memory management, profiling, and logging from your native plug-inA platform-specific native code library that is created outside of Unity for use in Unity. Allows you can access features like OS calls and third-party code libraries that would otherwise not be available to Unity. More info
See in Glossary
code.

Topic Description
Introduction to the native plug-in APIs Locate the native 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
API files and import them into your native plug-in.
Native plug-in API for graphics and rendering Access low-level graphics device and rendering features from native plug-ins.
Native plug-in API for shader compiler Control shader compiler variants from native plug-ins.
Native plug-in API for memory management Access Unity’s memory manager and track memory usage from native plug-ins.
Memory manager API reference Use the memory manager API in native plug-ins.
Native plug-in API for profiling Extend the profilerA window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating, or in your game logic. More info
See in Glossary
and collect performance data from native plug-ins.
Native plug-in API for logging Write Unity log messages from native plug-ins.

Additional resources


Did you find this page useful? Please give it a rating:

Building plug-ins for desktop platforms
Introduction to native plug-in API