clearColor
Determines whether the color buffer is cleared before the panel is rendered.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool clearColor { get; set; }
Remarks
This is typically used when a RenderTexture is assigned to PanelSettings.targetTexture. Otherwise, if a camera already clears the color of the render target, avoid redundant clearing to optimize performance.