Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

VideoPlayer.SetTargetAudioSource

public void SetTargetAudioSource(ushort trackIndex, AudioSource source);

Parameters

trackIndex Index 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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答