官术网_书友最值得收藏!

Summary

During this chapter, we discussed NGUI's basic workflow—it works with GameObjects, uses atlases to combine multiple textures in one large texture, has an event system, can use shaders, and has a localization system.

After importing the NGUI plugin, we created our first 2D UI with the UI Wizard, reviewed its parameters, and created our own GUI 2D layer for our UI to reside on.

Finally, we analyzed the four GameObjects that were created automatically for us by NGUI. After reviewing their parameters, we can summarize their roles as follows:

  • The UI Root holds the UI and scales it for pixel perfect or fixed sizes
  • The Camera views the UI and sends messages to the widgets for interactions
  • The Anchor can attach elements to the borders of screen or objects and add offsets
  • The Panel holds our widgets and renders them, with or without clipping

We are now ready to create our first widget. It's time to move on to the next chapter.

主站蜘蛛池模板: 吴忠市| 鹤峰县| 车险| 白玉县| 连南| 凤山市| 滨州市| 岚皋县| 镇巴县| 高陵县| 旬阳县| 德阳市| 西和县| 中卫市| 自贡市| 普格县| 湘乡市| 怀集县| 东宁县| 中阳县| 理塘县| 三江| 宁陵县| 东乡县| 合水县| 阿鲁科尔沁旗| 聊城市| 越西县| 军事| 九江市| 米脂县| 宁夏| 城口县| 皋兰县| 阳泉市| 潜江市| 铁力市| 安远县| 霍州市| 南京市| 宜州市|