VideoPlayer.SetTargetAudioSource

Switch to Manual
public void SetTargetAudioSource (ushort trackIndex, AudioSource source);

Parameters

trackIndexIndex of the audio track to associate with the specified AudioSource.
source AudioSource to associate with the audio track.

Description

Sets the AudioSource that will receive audio samples for the specified track if this audio target is selected with VideoPlayer.audioOutputMode.