Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DownloadHandlerAudioClip

Constructor, specifies what kind of audio data is going to be downloaded.
Read time 2 minutesLast updated 10 days ago

Definition

DownloadHandlerAudioClip(string, AudioType)

Constructor, specifies what kind of audio data is going to be downloaded.
public DownloadHandlerAudioClip(string url, AudioType audioType)

Parameters

The nominal (pre-redirect) URL at which the audio clip is located.

audioType

Value to set for AudioClip type.

Remarks

The value in
audioType
will be used to parameterize the AudioClip when importing the downloaded audio data.

DownloadHandlerAudioClip(Uri, AudioType)

Constructor, specifies what kind of audio data is going to be downloaded.
public DownloadHandlerAudioClip(Uri uri, AudioType audioType)

Parameters

uri

A System.Uri object identifying the audio clip resource.

audioType

Value to set for AudioClip type.

Remarks

The value in
audioType
will be used to parameterize the AudioClip when importing the downloaded audio data.

DownloadHandlerAudioClip(string, AudioType, bool)

Constructor, specifies what kind of audio data is going to be downloaded.
public DownloadHandlerAudioClip(string url, AudioType audioType, bool ambisonic)

Parameters

The nominal (pre-redirect) URL at which the audio clip is located.

audioType

Value to set for AudioClip type.

ambisonic

Set to true to mark the downloaded AudioClip as ambisonic.

Remarks

The value in
audioType
will be used to parameterize the AudioClip when importing the downloaded audio data.

DownloadHandlerAudioClip(Uri, AudioType, bool)

Constructor, specifies what kind of audio data is going to be downloaded.
public DownloadHandlerAudioClip(Uri uri, AudioType audioType, bool ambisonic)

Parameters

uri

A System.Uri object identifying the audio clip resource.

audioType

Value to set for AudioClip type.

ambisonic

Set to true to mark the downloaded AudioClip as ambisonic.

Remarks

The value in
audioType
will be used to parameterize the AudioClip when importing the downloaded audio data.