Namespace Serenity.Global.Domain.Enums
Enums
GameSessionMode
Enumeration representing the game session mode.
LogVerbosity
Enum representing the verbosity levels for logging.
SerenityAssetLoadingMode
Selects how Serenity discovers and loads runtime assets such as module definitions, audio clips and prefabs. The mode is global to the running application and is consumed by the asset utilities, the audio-mixer cache, the bootstrap installer, and any future Serenity loader that may differ between Addressables and Resources backends.
This Slice A introduces the enum as foundation only. No runtime loader behaviour changes
in this slice; subsequent slices wire the mode into UnityAssetUtils,
AudioMixerDependencyCache, and the editor exporter.
Underlying values are pinned.
AddressablesWithResourcesFallback is explicitly 0 so that any existing
scene/prefab whose UnitySerenityInstaller was serialized before this field existed
deserializes the missing field as Unity's default integer 0 — i.e. as the safe
legacy behaviour. The C# field initializer on UnitySerenityInstaller.AssetLoadingMode
also picks AddressablesWithResourcesFallback, but the explicit underlying
value is what protects already-saved assets.
The default in Serenity.Global.Infrastructure.Settings.SerenityAssetLoadingModeProvider is also AddressablesWithResourcesFallback so existing projects that do not opt in keep the exact behaviour they had before the mode existed.
Stability contract. Once shipped, these integer values must not be changed: any already-serialized asset relies on them. New modes must use the next unused integer, never renumber existing ones.