UIComponent
extends Component
The UIComponent class is a component used for UI rendering.
成员变量
UIComponent.guiPrefab : GUIPrefab |
| The UI component requires UI resources to render. |
UIComponent.uiMode : CanvasMode |
| UI mode CanvasMode |
UIComponent.eventCamera : Camera |
| 处理UI事件的相机。 |
UIComponent.uiOccludedBy3D : boolean |
| Whether the current UI is in a 3D environment. |
UIComponent.uiFaceCamera : boolean |
| Whether to face the camera when the uiMode is CanvasMode.Scene. |
UIComponent.uiSortingLayer : number |
| The sorting layer of the current UI. |
UIComponent.uiOrder : number |
| UI rendering order, smaller value renders first |
UIComponent.uiPixelPerUnitX : number |
| The number of pixels per unit in the X-axis direction for the current UI. |
UIComponent.uiPixelPerUnitY : number |
| The number of pixels per unit in the Y-axis direction for the current UI. |
UIComponent.canvas : Canvas |
| Read-only. The current canvas of the UI component. |
