Class PanelRenderer
Component to render a UXML file and stylesheets in the game view.
Inherited Members
Namespace: Unity.UIElements.Runtime
Assembly: solution.dll
Syntax
[AddComponentMenu("UIElements/Panel Renderer")]
[RequireComponent(typeof(PanelScaler))]
public class PanelRenderer : MonoBehaviour
Fields
| Name | Description |
|---|---|
| panelTransform | The transform to apply on the panel. |
| stylesheets | The associated stylesheets. |
| targetTexture | An optional texture onto which the panel should be rendered. |
| unityStyleSheet | The main style sheet file to give styles to Unity provided elements |
| uxml | The UXML file to render |
Properties
| Name | Description |
|---|---|
| panel | The panel holding the visual tree instantiated from the UXML file. |
| visualTree | The top level element. |
Methods
| Name | Description |
|---|---|
| Awake() | |
| OnDestroy() | |
| OnDisable() | |
| OnEnable() | |
| Update() |