OpacityControllerComponent

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

An Component that controls the opacity of an entity and its descendants. It works hierarchically, the opacity on antecedent will be combined by multiplying the opacity together.

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