getVolume

fun getVolume(): Float

Gets the volume of the AudioMixerGroupResource.

Return

The volume value, whose range is 0.0f, 1.0f. Returning -1.0f indicates getting the volume failed.