C# Class UnityEngine.Networking.DownloadHandlerAudioClip

Inheritance: DownloadHandler
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
GetData ( ) : byte[]

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

GetText ( ) : string

Private Methods

Méthode Description
InternalGetData ( ) : byte[]

Method Details

DownloadHandlerAudioClip() public méthode

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.
Résultat System

GetContent() public static méthode

Returns the downloaded AudioClip, or null.

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

GetData() protected méthode

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

protected GetData ( ) : byte[]
Résultat byte[]

GetText() protected méthode

protected GetText ( ) : string
Résultat string