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
Static Properties
- levelTransition → FadePreset
-
Level transitions
final
- sceneChange → FadePreset
-
Transitioning between scenes (e.g., loading screens)
final
- uiClick → FadePreset
-
Fast UI clicks or menu transitions
final
- voiceDuckingIn → FadePreset
-
final
- voiceDuckingOut → FadePreset
-
Character voice-over fades (BGM ducking)
final
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)
- smoothExit → const FadePreset
- Exiting boss or dramatic moment