logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioPortalComponent

    An opening of an Audio Room: a point, placed in the middle of a doorway or window, through which a sound behind the room's walls is heard. It belongs to the nearest Audio Room above it and counts as open while it is enabled on an active GameObject, so closing a door means disabling its portal. Moving the portal or any ancestor to another room moves it at once; an Audio Room added above an enabled portal is picked up the next time the portal is enabled. A portal with no room above it tells the author once and keeps that warning even if it is parented under a room afterwards. The portal seam is implemented explicitly so the public surface stays unchanged.

    Inheritance
    object
    UnityAudioPortalComponent
    Namespace: Serenity.AudioPlayer.Infrastructure.Components
    Assembly: Serenity.UnityAudioPlayer.Infrastructure.dll
    Syntax
    public sealed class UnityAudioPortalComponent : MonoBehaviour

    Constructors

    UnityAudioPortalComponent()

    Declaration
    public UnityAudioPortalComponent()
    In this article
    © 2026 Serenity. All Rights Reserved