Opacity
Applies a uniform opacity to its child element. Maps to UIToolkit’s opacity style property on a VisualElement.
Constructor
Opacity
Creates an Opacity element.
| Parameter | Description |
|---|---|
value | Opacity in the range [0, 1]. Clamped to this range. |
child | The child element to apply opacity to. Must not be null. |
key | An optional key for reconciliation identity. |
Properties
Value
The opacity value in the range [0, 1]. 0 is fully transparent, 1 is fully opaque.
Last updated on