Legacy Documentation: Version 2018.2 (Go to current version)
Canvas Group
Visual Components
Other Versions

Canvas Renderer

Switch to Scripting

The Canvas Renderer component renders a graphical UI(User Interface) Allows a user to interact with your application. More info
See in Glossary
object contained within a CanvasThe area that contains all UI elements in a scene. The Canvas area is shown as a rectangle in the Scene View. More info
See in Glossary
.

Properties

The Canvas Renderer has no properties exposed in the inspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
See in Glossary
.

Details

The standard UI objects available from the menu (GameObject > Create UI) all have Canvas Renderers attached wherever they are required but you may 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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答