C# Класс AudioSubItem, swip3

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

Открытые свойства

Свойство Тип Описание
Clip UnityEngine.AudioClip
ClipStartTime float
ClipStopTime float
Delay float
FadeIn float
FadeOut float
ItemModeAudioID string
Pan2D float
PitchShift float
Probability float
RandomDelay float
RandomPitch float
RandomStartPosition bool
RandomVolume float
SubItemType AudioSubItemType
Volume float

Private Properties

Свойство Тип Описание

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

Метод Описание
ToString ( ) : string

Returns the name of the audio clip for debugging.

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

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

Returns the name of the audio clip for debugging.
public ToString ( ) : string
Результат string

Описание свойств

Clip публичное свойство

Specifies the UnityEngine.AudioClip to be played in case of the AudioSubItemType.Item mode.
public AudioClip,UnityEngine Clip
Результат UnityEngine.AudioClip

ClipStartTime публичное свойство

Offsets the the audio clip start time (in seconds).
Does not work with looping.
public float ClipStartTime
Результат float

ClipStopTime публичное свойство

Ends playing the audio at this time (in seconds).
Can be used as a workaround for an unknown clip length (e.g. for tracker files)
public float ClipStopTime
Результат float

Delay публичное свойство

Defers the playback of the audio sub-item for Delay seconds.
public float Delay
Результат float

FadeIn публичное свойство

Automatic fade-in in seconds
public float FadeIn
Результат float

FadeOut публичное свойство

Automatic fade-out in seconds
public float FadeOut
Результат float

ItemModeAudioID публичное свойство

Specifies the audioID to be played in case of the AudioSubItemType.Item mode
public string ItemModeAudioID
Результат string

Pan2D публичное свойство

Alters the pan: -1..left, +1..right
public float Pan2D
Результат float

PitchShift публичное свойство

Alters the pitch in units of semitones ( thus 12 = twice the speed)
public float PitchShift
Результат float

Probability публичное свойство

If multiple sub-items are defined within an audio item, the specific audio clip is chosen with a probability in proportion to the Probability value.
public float Probability
Результат float

RandomDelay публичное свойство

Randomly adds a delay between 0 and RandomDelay
public float RandomDelay
Результат float

RandomPitch публичное свойство

Randomly shifts the pitch in units of semitones ( thus 12 = twice the speed)
public float RandomPitch
Результат float

RandomStartPosition публичное свойство

Starts playing at a random position.
Useful for audio loops.
public bool RandomStartPosition
Результат bool

RandomVolume публичное свойство

Randomly shifts the volume +/- this value
public float RandomVolume
Результат float

SubItemType публичное свойство

Specifies the type of this AudioSubItem
public AudioSubItemType SubItemType
Результат AudioSubItemType

Volume публичное свойство

The volume applied to the audio sub-item.
public float Volume
Результат float