GlobalFadePresets class
Global Fade Presets
Semantic and centralized presets to use across the entire game, allowing developers to reference meaningful transitions by name.
These wrap common audio use cases like ambient changes, voice ducking, and scene switching.
─────────────────────────────────────────────────────────────────────────────
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ambientShift → const FadePreset
- Ambience shift like day/night or mood swap
- bossEntrance → const FadePreset
- Boss entrance music (build tension)
- cinematic → const FadePreset
- Full cinematic moments (e.g., intro, ending)
- levelTransition → const FadePreset
- Level transitions
- sceneChange → const FadePreset
- Transitioning between scenes (e.g., loading screens)
- smoothExit → const FadePreset
- Exiting boss or dramatic moment
- uiClick → const FadePreset
- Fast UI clicks or menu transitions
- voiceDuckingIn → const FadePreset
- voiceDuckingOut → const FadePreset
- Character voice-over fades (BGM ducking)