setOpacity
Sets the opacity of the UnlitMaterial.
Valid range: [0.0f, 1.0f] (inclusive); values outside this range will be clamped to [0.0f, 1.0f] when applied.
Behavior depends on the current BlendingMode:
BlendingMode.OPAQUE: ignored, the material is always fully opaque.
BlendingMode.TRANSPARENT:
1.0fis fully opaque,0.0fis fully transparent.BlendingMode.ADD: scales the additive contribution; the background remains visible even at
1.0f.BlendingMode.FADE: same as BlendingMode.TRANSPARENT.
BlendingMode.MASKED: participates in the alpha test against
opacityThresholdinstead of producing semi-transparent results.
Parameters
opacity
The opacity value to set.
See also
Throws
IllegalStateException
If this material is closed or invalid.