Skip to content

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 ​

ParameterTypeDefault value
opacitynumber255

Returns ​

UIOpacityComponent

Overrides ​

Component.constructor

Properties ​

PropertyModifierTypeDefault valueInherited from
dirtypublicbooleantrueComponent.dirty
enabledpublicbooleantrueComponent.enabled
opacitypublicnumberundefined-

© 2026 PlayAdGentic