VideoPlayer.SetTargetAudioSource

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.