Skip to content

material.unlit#opacity

Summary

material.unlit#opacity gets or sets a finite opacity value in [0, 1]. Assignment marks uniforms dirty but does not change the material's readonly blendMode, which is selected at construction unless explicitly supplied.

Syntax

UnlitMaterial.opacity: number
material.opacity = value;
const value = material.opacity;

Returns

number - Current opacity value.

See Also