UnityScript “generic functions” in Unity 5

半腔热情 提交于 2019-12-02 00:29:49

UnityScript and JavaScript are two different languages.

UnityScript is a proprietary language, and it doesn't follow any concrete [ECMAScript] specification

Regarding the generics/templates.

Since [UnityScript] also supports explicit typing, it also has support for "generics" (runtime type enforcement), which JavaScript has no notion of.

Source UnityScript versus JavaScript: UnityScript has .NET's OOP features

See also:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!