Click or drag to resize

AudioObjectvolumeTotalWithoutFade Property

Gets the total volume.

Namespace:  (Default Namespace)
Assembly:  AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public float volumeTotalWithoutFade { get; }

Property Value

Type: Single
Remarks
This is the adjusted volume value with which the Audio clip is currently playing without fade in/out. It is the value resulting from multiplying the volume of the subitem, item, the category, the script parameter, the global volume and sound muting.

"Adjusted" means that the value does not equal Unity's internal audio clip volume value, because Unity's volume range is not distributed in a perceptually even manner.

unityVolume = Mathf.Pow( adjustedVolume, 1.6 )

See Also