unity canvas
时间: 2023-09-16 17:14:45 浏览: 131
Unity中的Canvas是所有UI组件的父物体,也就是说每一个UI组件都必须在Canvas下。当你创建一个UI控件时,如果在Hierarchy下没有Canvas组件的话,Unity会帮你自动创建一个Canvas,并将你的UI控件置于Canvas下。Canvas的尺寸可以使用Rect Transform进行手动调整,UI元素的遮挡效果由3D位置决定。这种渲染模式可以将Canvas当作场景中的任何其他对象一样对待,非常适用于需要将UI作为场景中的一部分或者作为剧情化界面的情况。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Unity之canvas](https://blog.csdn.net/keneyr/article/details/88074876)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Unity新UI系统概述——Canvas](https://blog.csdn.net/u014630768/article/details/41552477)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文