Click or drag to resize

AudioSourceVolumeSetterTrySetReferencedValue Method

Sets the volume of an AudioSource, if one exists.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
protected override bool TrySetReferencedValue(
	ref float newValue
)

Parameters

newValue
Type: SystemSingle
The new volume for the AudioSource.

Return Value

Type: Boolean
True if the volume was set, false if no volume was set.
See Also