Version: 2022.3
Language : English
Automated plug-in integration
Integrating Unity into native iOS applications

Bonjour browser sample

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 iOS application. This application implements a simple Bonjour client and consists of:

  • A Unity iOS Project where Plugins\Bonjour.cs is the C# interface to the native code, and BonjourTest.cs is the script that implements the application logic.
  • Native code (located in Assets/Plugins/iOS) that will be added to the built Xcode project as described in Automated plug-in integration.
Automated plug-in integration
Integrating Unity into native iOS applications
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961