Unity (游戏引擎)

本页使用了标题或全文手工转换
维基百科,自由的百科全书
Unity
開發者Unity Technologies英语Unity Technologies
首次发布1.0 / 2005年6月8日,​18年前​(2005-06-08
当前版本
  • 2023.2.0b17 (2023年11月7日;测试版本)[1]
  • 2023.2.15 (2024年3月19日;穩定版本)[2]
編輯維基數據鏈接
编程语言C#
C++執行環境[3]
平台參見 § 支援平台
类型游戏引擎
许可协议专有
网站https://www.unity.com

Unity是一款跨平台遊戲引擎[4],可用於開發2D3D遊戲[5][6],支援多種個人電腦行動裝置遊戲主機網頁平台擴增實境虛擬實境,其中在iOSAndroid的遊戲開發上特別受歡迎,被認為容易上手,並在獨立遊戲開發中廣受歡迎[7]。截至2018年,该引擎所支持的平台已经达到27个[8]

除了在遊戲產業外,Unity也應用在電腦動畫電腦模擬電影產業汽車產業建築業工程、甚至國武裝部隊[9]

歷史[编辑]

Unity最初於2005年6月在Apple全球開發者大會上公開,由史考特·福斯托透過Mac OS X展示[10],目的在使遊戲開發得以「大眾化」[11][12]。隔年,Unity在蘋果公司的Apple Design Awards中獲得了最佳Mac OS X圖形應用程式的亞軍[13]。Unity最初是為Mac OS X開發的,後增加了對Microsoft Windows和網頁瀏覽器的支援[14]

在Unity发布以来,陆续公布了数个更新版本,包括Unity 4.x和Unity 5.x。2016年12月,鉴于引擎的更新速度逐渐加快,Unity官方决定不再在其版本号中标注纯数字,而改用年份與版本号的复合形式[15],如Unity 2018.2,发布时间为2018年7月10日。[16]

Unity分为免費的个人版,付費的进阶版、专业版以及面向大型用户的企业版。[17]以下是所有現行的发行版本及其差异:

版本名稱 是否为全部引擎功能及平台提供支持 標誌页面 云构建优先级 服务器承载 盈利上限 績效報告 是否提供源代碼和高级功能支持 價格(美金)
個人版 Made with Unity标志+自定义动画(可选) 標準 20 CCUs英语Concurrent user $100,000 免費
进阶版 優先 50 CCUs英语Concurrent user $200,000 $40/月
專業版 多线程构建 200 CCUs英语Concurrent user 無上限 $150/月
企業版 最高(專用構建通道) 无限制 $200/月

主要特性[编辑]

  • 层级式的综合开发环境,視覺化编辑,详细的属性编辑器和动态的游戏预览。Unity也被用来快速的制作游戏或者开发游戏原型。
  • 可开发微软Microsoft WindowsMac OS X的可执行文件,在线内容(通过Unity Web Player插件支持Internet ExplorerFirefoxSafariMozillaNetscapeOperaCamino),Mac OS X的Dashboard工具,Wii程序和iPhone应用程序(开发Wii和iPhone需要用户购买额外的授权,在价格上不同)。
  • 自动资源导入:项目中的资源会被自动导入,并根据资源的改动自动更新。虽然很多主流的三维建模软件为Unity所支持,不过對於3ds MaxMayaBlenderCinema 4DCheetah3D的支持比較好,并支持一些其他的三维格式。
  • 图形引擎使用的是Direct3D(Windows),OpenGL(Mac,Windows)和自有的APIs(Wii)。
  • 支持凹凸貼圖(Bump mapping)、反射貼圖(Reflection mapping)、視差貼圖(Parallax Mapping)、螢幕空間環境光遮蔽(Screen Space Ambient Occlusion,SSAO)、动态阴影使用的是陰影貼圖Shadow mapping)技术,并支持Render-to-texture和全屏Post Processing效果。
  • Shaders编写使用ShaderLab英语Shading language语言,同时支持自有工作流中的编程方式或CgGLSL语言编写的Shader。一个Shader可以包含众多变量及一个参数接口,允许Unity去判定参数是否为当前所支持并适配最适合参数,并自己选择相应的Shader类型以获得广大的兼容性。
  • 内置对NvidiaPhysX物理引擎支持。
  • 游戏脚本基于Mono,一个相容於.NET Framework 2.0的跨平台开源套件,因此程序员可用JavaScriptC#Boo加以编写。
  • The Unity Asset Server:一个支持各种游戏和脚本的版本控制方案,使用PostgreSQL作为后端。
  • 音效系统基于OpenAL程式库,可以播放Ogg Vorbis的压缩音效。
  • 视频播放采用Theora编码。
  • 內建地形編輯器,支持树木與植被贴片。
  • 內建Lightmap ping以及全域照明 (Global illumination)。
  • 多人網路連線功能由第三方套件提供,有Raknet、Photon、SmartFoxServer等多種選擇。

编译[编辑]

  • Android
在编译输出App安裝用的apk檔之前,需要先安裝過Android SDK英语Android SDK
輸出成一個應用程式安裝用的bar檔。
  • iOS
輸出成資料夾,一個Xcode專案,必須再到macOS環境下用Xcode輸出。
  • Linux
輸出成資料夾,包含一個x86檔與一個執行時所必需相關檔案的資料夾。
  • Web Player
輸出成資料夾,包含一個html檔與一個執行時所必需的unity3d檔。用戶端必須另外先安裝Unity Web Player。2015年,Google Chrome已中止此Unity插件支援。Web Player已被弃用,取而代之的是编译到WebGL[18]
  • Windows
輸出成資料夾,包含一個可執行的exe檔與一個執行時所必需相關檔案的資料夾。

支援平台[编辑]

Unity是一個跨平台引擎[19]。Unity編輯器支援WindowsmacOSLinux平台,而開發的遊戲支援多種平台,包括行動裝置、個人電腦、遊戲主機和虛擬實境[20][21]。截至Unity 2020 LTS,官方支援以下平台[22]

曾支援的平台有Wii[40]Wii U[41]PlayStation 3[42]Xbox 360[42]Tizen[43]PlayStation Vita[44]任天堂3DS[45]BlackBerry 10[46]Windows Phone 8[46]Samsung Smart TV[47]Gear VR[48]Daydream[49]Vuforia[50]、Facebook Gameroom[49]Stadia[51]。Unity以前支援其他平台,包括其自家的Web瀏覽器插件Unity Web Player[52],但後被WebGL取代[53]。自版本5起,Unity提供了WebGL捆綁包,使用兩階段語言轉換器(C#C++,再到JavaScript)編譯為JavaScript。[54]

Unity是任天堂Wii U使用的預設軟體開發套件(SDK),任天堂在給予Wii U開發者許可證時會免費附送一份副本。Unity Technologies稱這種第三方SDK的捆綁是「業界首創」[55][56]

2023年8月,Unity中國宣布即將推出基於Unity 2022 LTS的中國版本,名為團結引擎(Tuanjie Engine),包括對中國平台如微信小遊戲、OpenHarmonyAliOS的支援[57]

历史[编辑]

在正式发布前,Unity经历了多年的开发阶段,Gooball在2005三月发布,运用了Unity的预发售版本开发。

  • 2005年6月,Unity 1.0.1发布
  • 2009年3月,Unity 2.5加入了对Windows的支持
  • 2009年10月,Unity 2.6独立版开始免费
  • 2013年11月,Unity跟Xbox One合作,Xbox One將可以使用Unity開發遊戲[58]
  • 2014年5月,Unity 4.5發布,加入了在iOS裝置上支援OpenGL ES 3.0[59]
  • 2014年11月26日,Unity 4.6發布,正式導入新的UI系統「UGUI」。[60]
  • 2015年3月3日,Unity 5.0於GDC 2015發布,開始支援WebGL[61]
  • 2015年4月13日,Unity宣布支持任天堂的掌机新任天堂3DS作为引擎运行平台。[62]
  • 2023年8月23日,Unity中国发布基于Unity 2022LTS版本的Unity中国版引擎「团结引擎」,已支持微信小程序、HMI-Android、QNX、Embedded Linux等平台,并宣布将很快支持OpenHarmony以及AliOS操作系统。[63]
  • 2023年9月13日,宣布將從2024年1月開始,開發者透過Unity達到收入門檻,將依照遊戲被安裝的次數對遊戲開發者收進行收費;知名開發商INNERSLOTH對此表達不滿。(此政策已取消)[64]
  • 2023年9月23日,Unity宣布取消此前提出的按照下载安装次数的新收费标准。[65]
  • 2023年10月9日,Unity宣布公司CEO兼公司主席约翰·里奇蒂洛英语John Riccitiello从公司离职,并辞去董事会职位。此举看作是为此前引发巨大争议的新收费规则负责。[66]

游戏[编辑]

相关[编辑]

参考[编辑]

  1. ^ Unity Editor Beta Releases. 2023年11月7日 [2023年11月7日] (英語). 
  2. ^ https://unity3d.com/get-unity/download/archive.
  3. ^ Meijer, Lucas. Is Unity Engine written in Mono/C#? or C++. [2011-04-26]. (原始内容存档于2011-04-14) (英语). 
  4. ^ Dealessandri, Marie. What is the best game engine: is Unity right for you?. GamesIndustry.biz. Gamer Network. 16 January 2020 [April 27, 2021]. (原始内容存档于April 4, 2020) (英语). 
  5. ^ Axon, Samuel. Unity at 10: For better—or worse—game development has never been easier. Ars Technica. September 27, 2016 [October 17, 2018]. (原始内容存档于October 5, 2018) (英语). 
  6. ^ Takahashi, Dean. John Riccitiello Q&A: How Unity CEO views Epic's Fortnite success. VentureBeat. September 15, 2018 [October 17, 2018]. (原始内容存档于September 17, 2018) (英语). 
  7. ^ Dealessandri, Marie. What is the best game engine: is Unity right for you?. GamesIndustry.biz. Gamer Network. 16 January 2020 [April 27, 2021]. (原始内容存档于April 4, 2020) (英语). 
  8. ^ Unity - Multiplatform. Unity. Unity Technologies. [2018-06-27]. (原始内容存档于2018-06-12) (英语). 
  9. ^ Government & Aerospace. Unity. [August 28, 2021]. (原始内容存档于September 13, 2021) (英语). 
  10. ^ 5 Years Later, Unity Used by 170,000 Developers and Available on 9 Different Devices. TechCrunch. 2010-06-07 [2024-02-19] (美国英语). 
  11. ^ 引用错误:没有为名为Easier2的参考文献提供内容
  12. ^ McWhertor, Michael. Former EA CEO John Riccitiello is now head of Unity. Polygon. October 22, 2014 [October 17, 2018]. (原始内容存档于December 5, 2018) (英语). 
  13. ^ Smykill, Jeff. Apple Design Award winners announced. ArsTechnica. August 9, 2006 [January 18, 2015]. (原始内容存档于January 19, 2015) (英语). 
  14. ^ Brodkin, Jon. How Unity3D Became a Game-Development Beast. Dice Insights. June 3, 2013 [October 30, 2018]. (原始内容存档于October 19, 2018) (英语). 
  15. ^ Batchelor, James. Unity dropping major updates in favour of date-based model. GamesIndustry.biz. [2017-03-18]. (原始内容存档于2017-03-19) (英语). 
  16. ^ 2018.2 is now available – Unity. Unity Technologies Blog. 2018-07-10 [2018-07-10]. (原始内容存档于2021-02-13) (美国英语). 
  17. ^ New Unity products and prices launching soon. blogs.unity3d.com. Unity. 2016-05-31 [2016-09-26]. (原始内容存档于2017-09-04). 
  18. ^ Echterhoff, Jonas. Unity Web Player Roadmap. Unity Technologies Blog. 2015-10-08 [April 18, 2016]. (原始内容存档于April 25, 2016). 
  19. ^ Riccitiello, John. John Riccitiello sets out to identify the engine of growth for Unity Technologies (interview). VentureBeat. 访谈 with Dean Takahashi. 2014-10-23 [2015-01-18]. (原始内容存档于2015-01-17) (英语). 
  20. ^ Kelliher, Fiona. Video game company grabs two buildings on Mission Street for big expansion. San Francisco Business Times. 2018-08-24 [2018-10-17]. (原始内容存档于2019-10-03) (英语). 
  21. ^ 21.0 21.1 Robertson, Adi. Unity officially releases its new game engine: Unity 5. The Verge. 2015-03-03 [2018-10-17]. (原始内容存档于2018-11-16) (英语). 
  22. ^ Unity - Manual: System requirements for Unity 2020 LTS. docs.unity3d.com. [2021-04-15]. (原始内容存档于2021-04-15) (英语). 
  23. ^ 23.0 23.1 23.2 23.3 23.4 23.5 Dillet, Romain. Unity CEO says half of all games are built on Unity. TechCrunch. 2018-09-05 [2018-12-03]. (原始内容存档于2018-12-20) (英语). 
  24. ^ Lavieri, Edward. Getting Started with Unity 2018: A Beginner's Guide to 2D and 3D game development with Unity, 3rd Edition. Packt Publishing. 2018: 20 [2018-12-04]. ISBN 9781788832915 (英语). 
  25. ^ Suckley, Matt. Unity 5.3 launches with improved support for iOS 9 and WebGL. Pocketgamer.biz. 2015-12-10 [2018-12-04]. (原始内容存档于2019-03-22) (英语). 
  26. ^ Coppock, Mark. Unity 5.5 can now be used to create HoloLens augmented reality titles. Digital Trends. 2016-11-30 [2018-12-03]. (原始内容存档于2019-02-09) (英语). 
  27. ^ 27.0 27.1 引用错误:没有为名为Head2的参考文献提供内容
  28. ^ Bright, Peter. Unity game engine heading to the browser without plug-ins. Ars Technica. 2014-03-18 [2018-10-29]. (原始内容存档于2019-03-22) (英语). 
  29. ^ Takahashi, Dean. Unity Technologies posts Q4 revenue of $220.3 million, up 39%. VentureBeat. GamesBeat. 2021-02-04 [2021-02-25]. (原始内容存档于2021-02-21) (英语). 
  30. ^ Parijat, Shubhankar. Xbox Series S is "An Extremely Capable Machine" – Unity Chief Product Officer. GamingBolt. 2020-11-20 [2021-02-24]. (原始内容存档于2021-04-22) (英语). 
  31. ^ DeNisco Rayome, Alison. How to become a Unity developer for VR and AR. Tech Republic. 2017-01-23 [2018-12-03]. (原始内容存档于2018-12-13) (英语). 
  32. ^ Graham, Peter. Unity 2017.2 Featuring Optimised Support for ARCore and ARKit launching This Month. VR Focus. 2017-10-04 [2018-12-04]. (原始内容存档于2019-10-03) (英语). 
  33. ^ Clayton, Natalie. Unity ARKit update includes persistent mapping and improved tracking. Pocketgamer.biz. 2018-06-15 [2018-12-04]. (原始内容存档于2019-03-22) (英语). 
  34. ^ Graham, Peter. Build in Unity? Want to Know More About Crafting for Windows Mixed Reality? Then Check out These new Videos From Microsoft. VR Focus. 2018-02-17 [2018-12-04]. (原始内容存档于2019-10-03) (英语). 
  35. ^ Wawro, Alex. Unity rolls out support for Microsoft's HoloLens goggles. Game Developer. 2015-04-29 [2022-02-22]. (原始内容存档于2022-02-23) (英语). 
  36. ^ Palladino, Tommy. Magic Leap Publishes More L.E.A.P. Developer Videos Featuring Insomniac Games, Weta Workshop & More. Next Reality. 2018-11-09 [2018-12-04]. (原始内容存档于2019-03-22) (英语). 
  37. ^ Unity - Manual: XR. docs.unity3d.com. [2021-04-15]. (原始内容存档于2021-04-15) (英语). 
  38. ^ Plummer, Quinten. Unity and SteamVR Unite for Native Vive Support. Tech News World. 2016-02-16 [2018-12-03]. (原始内容存档于2019-03-22) (英语). 
  39. ^ Grubb, Jeff. Unity game-making tool gets native support for Google's 5M Cardboard virtual reality devices. VentureBeat. 2016-02-10 [2018-12-03]. (原始内容存档于2019-03-22) (英语). 
  40. ^ Caoili, Eric. Unity to Support Wii Console as Authorized Middleware Provider. Game Developer. 2008-06-02 [2022-02-22]. (原始内容存档于2022-02-23) (英语). 
  41. ^ Handrahan, Matthew. Unity signs "industry first" licensing agreement for Wii U. GamesIndustry.biz. 2012-09-19 [2022-02-22]. (原始内容存档于2022-04-09) (英语). 
  42. ^ 42.0 42.1 DeLoura, Mark. In-Depth: The State Of Game Engines At GDC 2010. Game Developer. 2010-03-09 [2022-02-22]. (原始内容存档于2022-02-23) (英语). 
  43. ^ Pitcher, Jenna. Unity supporting Linux-based platform Tizen. Polygon. 2013-05-24 [2018-12-03]. (原始内容存档于2019-03-22) (英语). 
  44. ^ Gilbert, Ben. One of gaming's most-used engines arrives today on PlayStation Vita. Engadget. 2014-01-15 [2018-12-03]. (原始内容存档于2019-02-14) (英语). 
  45. ^ Jarvis, Matthew. Unity now supports Nintendo 3DS. MCVUK. 2016-02-01 [2018-12-03]. (原始内容存档于2019-03-22) (英语). 
  46. ^ 46.0 46.1 Rose, Mike. Unity now supports Windows Phone 8, Windows Store and BlackBerry 10. Game Developer. 2013-07-22 [2022-02-22]. (原始内容存档于2022-02-23) (英语). 
  47. ^ Harris, Richard. Unity Adds Another Big Screen Option for Game Developers with Unity 4.5 for Samsung Smart TV. App Developer Magazine. 2014-08-28 [2018-12-04]. (原始内容存档于2019-03-22) (英语). 
  48. ^ 引用错误:没有为名为Robertson4的参考文献提供内容
  49. ^ 49.0 49.1 Batchelor, James. Unity dropping major updates in favour of date-based model. Gamesindustry.biz. 2016-12-14 [2018-10-29]. (原始内容存档于2018-07-21) (英语). 
  50. ^ 引用错误:没有为名为ARCore4的参考文献提供内容
  51. ^ Moon, Mariella. Google makes it easier for studios to self-publish Stadia games. Engadget. 2020-03-24. (原始内容存档于2021-04-15) (英语). 
  52. ^ 引用错误:没有为名为Bright4的参考文献提供内容
  53. ^ Echterhoff, Jonas. Unity Web Player Roadmap. Unity Technologies Blog. 2015-10-08 [2016-04-18]. (原始内容存档于2016-04-25) (英语). 
  54. ^ Kovelenov, Yuri. Verge3D versus Unity WebGL. Soft8Soft. 2018-08-23 [2018-08-24]. (原始内容存档于2018-08-24) (英语). 
  55. ^ 引用错误:没有为名为VB Unity interview3的参考文献提供内容
  56. ^ McElroy, Griffin. Unity for Wii U opens up GamePad hardware and more to developers. Polygon. 2013-08-20 [2014-08-04]. (原始内容存档于2014-08-08) (英语). 
  57. ^ Unity 引擎中国版“团结引擎”正式发布 [Chinese edition of Unity Engine 'Tuanjie Engine' officially announced]. PingWest. 2023-08-23 [2023-09-17] (中文). 
  58. ^ 存档副本. [2013-11-09]. (原始内容存档于2021-04-22). 
  59. ^ Unity - What's new in Unity 4.5. Unity Technologies. [2014-11-26]. (原始内容存档于2022-01-25). 
  60. ^ Unity - What's new in Unity 4.6. Unity Technologies. [2014-11-26]. (原始内容存档于2022-05-05). 
  61. ^ Mozilla 與 Unity 共同公開 Unity 5! 3D 遊戲開發引擎現可支援 WebGL. 巴哈姆特. 2015-03-19 [2015-03-19]. (原始内容存档于2016-03-04). 
  62. ^ UNITY TO SUPPORT NEW NINTENDO 3DS AND NEW NINTENDO 3DS XL页面存档备份,存于互联网档案馆).Unity Technologies.2015-04-13.[2015-04-13].
  63. ^ Unity中国正式推出Unity中国版引擎-36氪. 36kr.com. 2023-08-23 [2023-08-23]. (原始内容存档于2023-08-23). 
  64. ^ 遊戲開發者傻眼!Unity 遊戲開發引擎宣佈明年起將根據遊戲安裝量對開發者進行收費. 2023-09-14 [2023-09-14]. (原始内容存档于2023-09-16). 
  65. ^ Unity 撤回受開發者猛烈抨擊的「安裝數」收費新規則页面存档备份,存于互联网档案馆).YahooTech.2023-09-23.[2023-10-16].
  66. ^ Unity CEO John Riccitiello Steps Down After Pricing Blowup页面存档备份,存于互联网档案馆).Wired.2023-10-09.[2023-10-16].

外部链接[编辑]