Unity2017.1官方UGUI文档翻译——Canvas Renderer

Canvas Renderer

画布渲染器

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

Canvas Renderer组件渲染包含在Canvas中的图形UI对象。

Properties

属性

The Canvas Renderer has no properties exposed in the inspector.

Canvas渲染器没有在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.

菜单中的标准UI对象(GameObject > Create UI)只要是需要Canvas Renderer的都自动包含Canvas Renderer,但自定义的UI对象要手动添加这个组件。 虽然在inspector中没有公开属性,但是可以通过脚本访问一些属性和功能 - 有关完整的详细信息,请参阅“脚本参考”中的CanvasRenderer页面。

原文地址:https://www.cnblogs.com/SolarWings/p/7992513.html