LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

VideoPlayer.SetDirectAudioVolume

public void SetDirectAudioVolume(ushort trackIndex, float volume);

Parameters

trackIndexTrack index for which the volume is set.
volumeNew volume, between 0 and 1.

Description

Set the direct-output audio volume for the specified track.