這幾天研究OPENGL時,想找一個UI庫來用,發現了IMGUI,到網上搜索評估中,忽然發現它彷佛和UNITY有關係。html
UNITY文檔中提到過IMGUI,不知道是不一個東西,仔細看了下文檔,果真是。原文以下:ide
Legacy GUI
Unity originally had just two GUI Components. These have since been replaced by both the modern UI System, and the scripting-driven IMGUI System. The original GUI components are kept for legacy purposes but should not be used for new projects函數
原來狀況是這樣的:UNITY在UGUI出來以前,一直是本身擼的UI系統,簡稱【GUI】,就是咱們熟悉的在OnGui()函數裏寫的那些東西。ui
GUI的API幾乎就是抄IMGUI的,用法,名字都差很少,特色是效率低。spa
自從出了UGUI以後的某個版本,UNITY將【GUI】換爲了IMGUI,如上面英文所述。3d
如今UGUI主要用於遊戲中交互的UI,在此以前,你們都用NGUI調試
而IMGUI則替代了GUI原來的做用:用於遊戲調試和自定義Inspector面板component