简体   繁体   English

unityscript,c#,boo一起在一起吗?

[英]unityscript, c#, boo together in unity?

Is it possible to use unityscript and boo together( in the same project) in unity 3d? 是否可以在unity 3d中(在同一项目中)一起使用unityscript和boo? 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. 我们正在尝试选择平台和引擎来作为一个整体来开发游戏,有些编码器的python和js的都不错。 So I will suggest unity as the engine if it is possible to combine these languages and work as a whole. 因此,如果可以将这些语言结合起来并作为一个整体来工作,我将建议团结为引擎。

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#. 实际上,您可以在unity3d页面上找到的许多示例项目都使用JS和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. 因此,从技术上讲,没有什么可以阻止您在同一项目甚至对象中使用不同的语言,但是您仍然应该考虑使用一种默认语言,因为如果您使用多种不同的语言,C#开发人员将很难更改Boo中的代码(类似于Python),如有必要,将始终要求他要求原始脚本编写者进行更改。

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) 更多信息: 概述:脚本编译(高级)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM