logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum AudioRolloffMode

    Engine-agnostic equivalent of Unity's AudioRolloffMode: how a 3D sound's volume attenuates with distance from the listener.
    Numeric values mirror UnityEngine.AudioRolloffMode so the Unity layer can map between them by value. Lives in the Domain layer, which must not depend on UnityEngine.

    Namespace: Serenity.AudioPlayer.Domain.Types
    Assembly: Serenity.AudioPlayer.Domain.dll
    Syntax
    public enum AudioRolloffMode

    Fields

    Name Description
    Custom

    Attenuation follows a custom curve configured on the audio source.

    Linear

    Volume decreases linearly from the min distance to the max distance.

    Logarithmic

    Volume drops quickly when close to the source, then levels off (Unity's default).

    In this article
    © 2026 Serenity. All Rights Reserved