unityscript、c#、boo 统一在一起吗?
是否可以在unity 3d中一起使用unityscript和boo(在同一个项目中)?我们正在尝试选择平台和引擎来作为一个团队来开发游戏,一些编码员擅长 python,另一些编码员擅长 js。因此,如果可以将这些语言结合起来并作为一个整体工作,我会建议使用 Unity 作为引擎。
Is it possible to use unityscript and boo together( in the same project) in unity 3d? We are trying to choose the platform and the engine to develop a game as a group and some coders are good in python and some others in js. So I will suggest unity as the engine if it is possible to combine these languages and work as a whole.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在同一个项目中使用所有这三个。即使在同一个对象中。事实上,您可以在 unity3d 页面上找到的许多示例项目混合使用 JS 和 C#。
因此,从技术上讲,没有什么可以阻止您在同一项目甚至对象中使用不同的语言,但是您仍然应该考虑使用一种默认语言,因为如果您有多种不同的语言,C# 开发人员将更难更改 Boo 中编写的代码(类似 Python),如果有必要,并且总是要求他要求原始脚本编写者进行更改。
You can use all three of them in the same project. Even in the same object. In fact many of the example projects you can find on unity3d page use a mixture of JS and C#.
So technically nothing prevents you from using different languages within same project or even objects, however you should still consider to have one default language, because if you have several different languages, it will become harder for a C# developer to change code made in Boo (Python-like) if necessary and would always require him to ask the original script writer to make the changes.
是的,您可以组合这 3 种语言,但不能自由组合。有两个脚本层:标准资产和普通。弥合语言差异的唯一方法是让普通层中的脚本引用标准资产层中的脚本。
更多信息请参见:概述:脚本编译(高级)
Yes, you can combine the 3 languages, but not freely. There are two script tiers: Standard Assets and normal. The only way to bridge a language difference is to have a script in the normal tier reference a script in the Standard Assets tier.
More here: Overview: Script compilation (Advanced)