Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Native plug-in development for iOS

Understand and use the plug-ins for iOS projects
Read time 1 minuteLast updated 12 days ago

Build and use native plug-ins on iOS.

Topic

Description

Introduction to native plug-ins on iOSIntroduces native plug-ins for iOS and their structure.
Create a native plug-in for iOSCreate a native plug-in for your iOS project and import it into Unity.
Call native plug-ins for iOSUnderstand how to run code when your application is running on a device.
Create callbacks from native codeUnderstand how to use native-to-managed callback functionality.
Configure a plug-in for iOS with the Inspector windowUnderstand how to configure and add your native plug-in to your Xcode project using Inspector tools.
Source and binary forms of native iOS plug-insLearn about the different forms of native iOS plug-ins you can create for iOS, tvOS, and visionOS.
Conditional compilation behavior for native iOS plug-insLearn how to use conditional compilation to support different project types in your native source code plug-in.
Initialization paths for native iOS plug-insLearn about the different initialization paths available for native iOS plug-ins.
Unity native plug-in example for iOSUse the native plug-in example to understand how to develop a plug-in with Swift or Objective-C.

Additional resources