Class: UIOpacityComponent
Cascading alpha 0..255 written to the node by UIOpacitySystem. Children inherit and multiply: effective = parent.cascaded × self.opacity/255. Roots without the component are at 1.0. 0 is invisible but still hit-testable — use SetActive(false) for a hard hide.
Extends
Constructors
Constructor
ts
new UIOpacityComponent(opacity?): UIOpacityComponent;Parameters
| Parameter | Type | Default value |
|---|---|---|
opacity | number | 255 |
Returns
UIOpacityComponent
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
dirty | public | boolean | true | Component.dirty |
enabled | public | boolean | true | Component.enabled |
opacity | public | number | undefined | - |