Click or drag to resize

AudioObjectvolumeItem Property

Gets or sets the volume of the audio item.

Namespace:  (Default Namespace)
Assembly:  AudioToolkit (in AudioToolkit.dll) Version: (
public float volumeItem { get; set; }

Property Value

Type: Single
This is the adjusted volume value with which the Audio clip is currently playing. It is the value resulting from multiplying the volume of the subitem and the item. It does not contain the global volume, the category, the script parameter, or the fading value.

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

unityVolume = Mathf.Pow( adjustedVolume, 1.6 )

See Also