- Mastering UI Development with Unity
- Ashley Godbold
- 181字
- 2021-08-27 18:43:13
Canvas Renderer component
The Canvas Renderer component is not on a Canvas object but on all other renderable UI objects.
For a UI element to render, it must have a Canvas Renderer component on it. All of renderable UI elements that you create via the Create menu will automatically have this component attached to them. If you try to remove this component, you will see a warning similar to the following:

In the preceding screenshot, I tried to remove the Canvas Render a component from a Text UI object. As you can see, it will not let me remove the Canvas Renderer component, because the Text component relies on it. If I return and remove the text component, I would then be able to remove the Canvas Render a component.
You will note that there are no properties in the Canvas Renderer component that can be edited from within the inspector; however, you can access various properties of it from within scripts.
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- C語言程序設計(第3版)
- 數據結構習題精解(C語言實現+微課視頻)
- 信息安全技術
- HTML5入門經典
- Serverless computing in Azure with .NET
- Node學習指南(第2版)
- Julia 1.0 Programming Complete Reference Guide
- Visual Studio Code 權威指南
- Learning Bootstrap 4(Second Edition)
- 軟件測試分析與實踐
- Access數據庫應用教程(2010版)
- XML程序設計(第二版)
- Java程序設計入門(第2版)
- Scala編程(第4版)