getOpacity

fun getOpacity(): Float

Gets the opacity of the UnlitMaterial.

Return

The current opacity value of the UnlitMaterial.

Throws

IllegalStateException

If this material is closed or invalid.