C# Class UnityEngine.Networking.DownloadHandlerAudioClip

Inheritance: DownloadHandler
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
DownloadHandlerAudioClip ( string url, AudioType audioType ) : System

Constructor, specifies what kind of audio data is going to be downloaded.

GetContent ( UnityWebRequest www ) : AudioClip

Returns the downloaded AudioClip, or null.

Protected Methods

Method Description
GetData ( ) : byte[]

Called by DownloadHandler.data. Returns a copy of the downloaded clip data as raw bytes.

GetText ( ) : string

Private Methods

Method Description
InternalGetData ( ) : byte[]

Method Details

DownloadHandlerAudioClip() public method

Constructor, specifies what kind of audio data is going to be downloaded.

public DownloadHandlerAudioClip ( string url, AudioType audioType ) : System
url string The nominal (pre-redirect) URL at which the audio clip is located.
audioType AudioType Value to set for AudioClip type.
return System

GetContent() public static method

Returns the downloaded AudioClip, or null.

public static GetContent ( UnityWebRequest www ) : AudioClip
www UnityWebRequest A finished UnityWebRequest object with DownloadHandlerAudioClip attached.
return UnityEngine.AudioClip

GetData() protected method

Called by DownloadHandler.data. Returns a copy of the downloaded clip data as raw bytes.

protected GetData ( ) : byte[]
return byte[]

GetText() protected method

protected GetText ( ) : string
return string