For a simple example of how to use a 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, download the Bonjour Browser Sample.
This example demonstrates how you can invoke Objective-C code from a Unity iOSApple’s mobile operating system. More info
See in Glossary application. This application implements a simple Bonjour client and consists of:
Plugins\Bonjour.cs
is the C# interface to the native code, and BonjourTest.cs
is the script that implements the application logic.Assets/Plugins/iOS
) that will be added to the built Xcode project as described in Automated plug-in integration.