SetTargetAudioSource(ushort, AudioSource)
Sets the AudioSource that will receive audio samples for the specified track if this audio target is selected with VideoPlayer.audioOutputMode.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Video
- Assembly: UnityEngine.VideoModule
public void SetTargetAudioSource(ushort trackIndex, AudioSource source)
Parameters
Index of the audio track to associate with the specified AudioSource.
AudioSource to associate with the audio track.