unity移动脚本文档_文档,Unity脚本语言和您

unity移动脚本文档_文档,Unity脚本语言和您

unity移动脚本文档

Everybody has their favorite scripting language, and the use of different languages evolves over time. Historically, we have supported three languages: C#, UnityScript (also known as JavaScript for Unity) and Boo. Of course, we aim to concentrate our support on the languages you want to use.

每个人都有自己喜欢的脚本语言,不同语言的使用随着时间的推移而发展。 从历史上看,我们支持三种语言:C#,UnityScript(也称为UnityJavaScript)和Boo。 当然,我们旨在将我们的支持集中在您要使用的语言上。

Currently, according to our editor analytics statistics, the percentage of scripts created in the three languages break down like this:

目前,根据我们的编辑器分析统计数据,使用以下三种语言创建的脚本的百分比细分如下:

unity移动脚本文档_文档,Unity脚本语言和您

This means that, as so few people use Boo, and the resources required to support it in the docs are not negligible, we’ve decided to drop support for Boo documentation for the Unity 5.0 release and use our resources in a more constructive way.

这意味着,由于很少人使用Boo,并且在文档中支持Boo所需的资源不可忽略,因此我们决定放弃对Unity 5.0版本的Boo文档的支持,并以更具建设性的方式使用我们的资源。

When Unity 5.0 launches, we will also drop “Create Boo Script” from the menu. That said, and very importantly, if your project contains Boo scripts, they will still work just as before.

启动Unity 5.0时,我们还将从菜单中删除“创建Boo脚本”。 也就是说,非常重要的是,如果您的项目包含Boo脚本,它们仍将像以前一样工作。

We have listened to your feedback, and what you’ve been telling us that you really want from your documentation is C# examples across the board. As a consequence, we’re also moving internally to provide the best support for C# that we can.

我们已经听取了您的反馈,并且您一直在告诉我们,文档中真正想要的是C#示例。 因此,我们也在内部进行迁移,以尽我们所能为C#提供最佳支持。

Currently, most Tutorials, and Sample Assets are based around C#, and in the 5.x cycle, we’ll ensure that all our C# examples in the documentation are first-class citizens.

当前,大多数TutorialsSample Assets都是基于C#的,在5.x周期中,我们将确保文档中所有的C#示例都是一等公民。

Side note: up until now, our internal procedure has been to write sample code using UnityScript / JavaScript, which is then automatically converted to C# and Boo. We’ve now made it possible for Unity engineers to author their examples in C# and auto-convert them to UnityScript, using a newly developed and improved C#-to-UnityScript converter.

旁注:到目前为止,我们的内部程序一直是使用UnityScript / JavaScript编写示例代码,然后将其自动转换为C#和Boo。 现在,我们使Unity工程师可以使用C#编写示例,并使用新开发和改进的C#-UnityScript转换器将其自动转换为UnityScript。

Thus, many of the C# examples you’ve been requesting are now live, and even more will be ready when Unity 5.0 comes out. W00t!

因此,您一直在请求的许多C#示例现在都可以使用,并且在Unity 5.0推出时甚至可以使用。 W00t!

翻译自: https://blogs.unity3d.com/2014/09/03/documentation-unity-scripting-languages-and-you/

unity移动脚本文档