Canvas 画布
本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.3版本
参考链接:https://docs.unity3d.com/Manual/UICanvas.html
The Canvas is the area that all UI elements should be inside. The Canvas is a Game Object with a Canvas component on it, and all UI elements must be children of such a Canvas.
画布是所有UI元素都应该在的区域。Canvas是一个带有Canvas组件的游戏对象,所有UI元素都必须是Canvas的子元素。
Creating a new UI element, such as an Image using the menu GameObject > UI > Image, automatically creates a Canvas, if there isn’t already a Canvas in the scene. The UI element is created as a child to this Canvas.
创建一个新的UI元素,例如使用菜单GameObject > UI > Image创建一个图像,如果场景中还没有画布,则自动创建一个画布。UI元素是作为这个画布的子元素创建的。
The Can