- Mastering UI Development with Unity
- Ashley Godbold
- 181字
- 2021-08-27 18:43:13
UI Panel
The main function of UI Panels is to hold other UI elements. You can create a Panel by selecting Create | UI | Panel. Its important to note that there is no Panel component. Panels are really just GameObjects that have Rect Transform, Canvas Renderer, and Image components. So, really, a UI Panel is just a UI Image with a few properties predefined for it.

By default, Panels start with the Background image (which is just a grey rounded rectangle) as the Source Image with medium opacity. You can replace the Source Image with another image or remove the image entirely.
Panels are very useful when you are trying to ensure that items scale and are appropriately relative to each other. Items that are contained within the same Panel will scale relative to the Panel and maintain their relative position to each other in the process.
We will look at the Image component more thoroughly soon, but, now that we are looking at an object that will allow us to edit its Rect Transform component, let's explore that component.
- 數(shù)據(jù)庫系統(tǒng)原理及MySQL應用教程(第2版)
- JavaScript語言精髓與編程實踐(第3版)
- 跟“龍哥”學C語言編程
- Reactive Programming With Java 9
- C語言程序設計案例精粹
- 正則表達式經(jīng)典實例(第2版)
- 微服務架構深度解析:原理、實踐與進階
- 一本書講透Java線程:原理與實踐
- Visual Basic程序設計習題與上機實踐
- MongoDB Cookbook(Second Edition)
- OpenCV 3.0 Computer Vision with Java
- VC++ 2008專題應用程序開發(fā)實例精講
- Puppet Essentials
- C語言程序設計:現(xiàn)代方法(第2版)
- 區(qū)塊鏈智能合約安全入門