Legacy Documentation: Version 5.5
Canvas Group
Visual Components

Canvas Renderer

Switch to Scripting

The Canvas Renderer component renders a graphical UI object contained within a Canvas.

Properties

The Canvas Renderer has no properties exposed in the inspector.

Details

The standard UI objects available from the menu (GameObject > Create UI) all have Canvas Renderers attached wherever they are required but you many need to add this component manually for custom UI objects. Although there are no properties exposed in the inspector, a few properties and function can be accessed from scripts - see the CanvasRenderer page in the Script Reference for full details.

Canvas Group
Visual Components
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961