UsageHints
Offers a set of options that describe the intended usage patterns of a VisualElement. These options serve as guidance for optimizations. You can set multiple usage hints on an element. For example, if both position and color change, you can set both UsageHints.DynamicTransform and
阅读时间1 分钟最后更新于 1 天前
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[Flags]public enum UsageHints
Fields
Value | Description |
|---|---|
| DynamicColor | Optimizes rendering of a VisualElement for frequent color changes, such as a built-in style color being animated. |
| DynamicPostProcessing | Optimizes rendering of a VisualElement that is subject to have post-processing effects (filters) applied to it. |
| DynamicTransform | Optimizes rendering of a VisualElement for frequent position and transformation changes. |
| GroupTransform | Optimizes rendering of a VisualElement that changes its transformation and position frequently, and has many descendants that have their hints set to UsageHints.DynamicTransform. |
| LargePixelCoverage | Optimizes rendering of a VisuaElement that covers a large pixel area on screen. |
| MaskContainer | Optimizes rendering of a VisualElement that has multiple descendants with nested masks. |
| None | No particular hints applicable. |