Unity 支持自动的 插件在 Unity 外部创建的一组代码,可以在 Unity 中创建功能。你可以在 Unity 中使用两种插件:托管插件(使用 Visual Studio 等工具创建的托管 .NET 程序集)和原生插件(特定于平台的原生代码库)。了解更多信息
参见 术语表集成,并将以下扩展名的文件复制到生成的 Xcode 项目:.a
、.m
、.mm
、.c
、.cpp
、.h
、.swift
。
要启用自动化插件集成,请在插件 检查器一个 Unity 窗口,用于显示有关当前选定的 GameObject、资源或项目设置的信息,便于你检查和编辑值。了解更多信息
参见 术语表中启用 iOS 插件。
如果你将具有这些扩展名的文件放置在 Assets/Plugins/iOS
文件夹中,Unity 只会为 iOS 平台启用它们。
注意:已复制到所生成 Xcode 项目中的文件不再链接到你的 Unity 项目中的对应文件。如果你在 Xcode 中更改这些文件,你必须将它们复制回 Unity 项目。否则,Unity 会在你下一次构建项目时覆盖它们。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.