OpacityControllerComponent

@MainThread
class OpacityControllerComponent(@FloatRange(from = 0.0, to = 1.0) opacity: Float = 1.0f) : Component

A Component that controls the opacity of an entity and its descendants.

Operates hierarchically: ancestor and descendant opacities are multiplied to produce the final effective opacity.

Constructors

Link copied to clipboard
constructor(@FloatRange(from = 0.0, to = 1.0) opacity: Float = 1.0f)

Properties

Link copied to clipboard
var opacity: Float

The property that defines a value for the initial value of opacity.

Functions

Link copied to clipboard
open override fun clone(): Component

Creates and returns a copy of this Component instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String