C# Класс UnityEngine.Networking.DownloadHandlerAudioClip

Наследование: DownloadHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetData ( ) : byte[]

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

GetText ( ) : string

Приватные методы

Метод Описание
InternalGetData ( ) : byte[]

Описание методов

DownloadHandlerAudioClip() публичный Метод

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.
Результат System

GetContent() публичный статический Метод

Returns the downloaded AudioClip, or null.

public static GetContent ( UnityWebRequest www ) : AudioClip
www UnityWebRequest A finished UnityWebRequest object with DownloadHandlerAudioClip attached.
Результат UnityEngine.AudioClip

GetData() защищенный Метод

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

protected GetData ( ) : byte[]
Результат byte[]

GetText() защищенный Метод

protected GetText ( ) : string
Результат string