Свойство | Type | Description | |
---|---|---|---|
FadeOutThreshold | float | ||
FadeSpeed | float |
Méthode | Description | |
---|---|---|
Fade ( |
If the audio source is enabled and playing, fades out the current clip and fades in the specified one, after. If the audio source is enabled and not playing, fades in the specified clip immediately. If the audio source is not enalbed, fades in the specified clip as soon as it gets enabled.
|
|
Play ( ) : void |
Continues fading in the current audio clip.
|
|
Stop ( ) : void |
Stop playing the current audio clip immediately.
|
Méthode | Description | |
---|---|---|
Awake ( ) : void | ||
FadeToNextClip ( ) : void | ||
OnDisable ( ) : void | ||
OnEnable ( ) : void | ||
Update ( ) : void |
public Fade ( |
||
clip | Clip to fade in. | |
volume | float | Volume to fade to. |
loop | bool | Whether to loop the new clip, or not. |
Résultat | void |