C# Class AudioSubItem, swip3

Afficher le fichier Open project: unit9/swip3 Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Свойство Type Description

Méthodes publiques

Méthode Description
ToString ( ) : string

Returns the name of the audio clip for debugging.

Method Details

ToString() public méthode

Returns the name of the audio clip for debugging.
public ToString ( ) : string
Résultat string

Property Details

Clip public_oe property

Specifies the UnityEngine.AudioClip to be played in case of the AudioSubItemType.Item mode.
public AudioClip,UnityEngine Clip
Résultat UnityEngine.AudioClip

ClipStartTime public_oe property

Offsets the the audio clip start time (in seconds).
Does not work with looping.
public float ClipStartTime
Résultat float

ClipStopTime public_oe property

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
Résultat float

Delay public_oe property

Defers the playback of the audio sub-item for Delay seconds.
public float Delay
Résultat float

FadeIn public_oe property

Automatic fade-in in seconds
public float FadeIn
Résultat float

FadeOut public_oe property

Automatic fade-out in seconds
public float FadeOut
Résultat float

ItemModeAudioID public_oe property

Specifies the audioID to be played in case of the AudioSubItemType.Item mode
public string ItemModeAudioID
Résultat string

Pan2D public_oe property

Alters the pan: -1..left, +1..right
public float Pan2D
Résultat float

PitchShift public_oe property

Alters the pitch in units of semitones ( thus 12 = twice the speed)
public float PitchShift
Résultat float

Probability public_oe property

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
Résultat float

RandomDelay public_oe property

Randomly adds a delay between 0 and RandomDelay
public float RandomDelay
Résultat float

RandomPitch public_oe property

Randomly shifts the pitch in units of semitones ( thus 12 = twice the speed)
public float RandomPitch
Résultat float

RandomStartPosition public_oe property

Starts playing at a random position.
Useful for audio loops.
public bool RandomStartPosition
Résultat bool

RandomVolume public_oe property

Randomly shifts the volume +/- this value
public float RandomVolume
Résultat float

SubItemType public_oe property

Specifies the type of this AudioSubItem
public AudioSubItemType SubItemType
Résultat AudioSubItemType

Volume public_oe property

The volume applied to the audio sub-item.
public float Volume
Résultat float