logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioRoomComponentShapeTests

    Tests for the shape of a UnityAudioRoomComponent: the first enabled trigger collider that can tell where a point lies, resolved when the room is enabled and found again, at most once a frame, while the room has none or its shape is no longer usable. The geometry of each collider type is pinned by the containment util's own tests; these cover which collider the room chooses and when. Colliders are built in a hermetic corner of the physics world and synced before every question.

    Inheritance
    object
    AudioRoomTestFixture
    UnityAudioRoomComponentShapeTests
    Inherited Members
    AudioRoomTestFixture.CreateRegistryAndObjects()
    AudioRoomTestFixture.AssertTheSharedRegistryIsEmptyThenDestroyTheObjects()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAudioPlayer.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityAudioRoomComponentShapeTests : AudioRoomTestFixture

    Constructors

    UnityAudioRoomComponentShapeTests()

    Declaration
    public UnityAudioRoomComponentShapeTests()

    Methods

    ColliderAddedInTheFrameTheRoomIsEnabled_IsSeenFromTheNextFrame()

    Declaration
    public IEnumerator ColliderAddedInTheFrameTheRoomIsEnabled_IsSeenFromTheNextFrame()
    Returns
    Type Description
    IEnumerator

    ColliderAddedLongAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()

    Declaration
    public IEnumerator ColliderAddedLongAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
    Returns
    Type Description
    IEnumerator

    ColliderDisabledAfterTheRoomIsEnabled_FallsBackToTheNextTriggerOnTheNextFrame()

    Declaration
    public IEnumerator ColliderDisabledAfterTheRoomIsEnabled_FallsBackToTheNextTriggerOnTheNextFrame()
    Returns
    Type Description
    IEnumerator

    ColliderEnabledAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()

    Declaration
    public IEnumerator ColliderEnabledAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
    Returns
    Type Description
    IEnumerator

    Contains_Box_TrueInsideFalseOutside()

    Declaration
    public void Contains_Box_TrueInsideFalseOutside()

    Contains_DisabledCollider_False()

    Declaration
    public void Contains_DisabledCollider_False()

    Contains_NonConvexMesh_False()

    Declaration
    public void Contains_NonConvexMesh_False()

    Contains_RotatedBox_FollowsTheRotatedShapeNotItsBoundsBox()

    Declaration
    public void Contains_RotatedBox_FollowsTheRotatedShapeNotItsBoundsBox()

    Contains_SolidBox_IsIgnored()

    Declaration
    public void Contains_SolidBox_IsIgnored()

    DestroyedCollider_IsReplacedByTheNextSupportedTrigger()

    Declaration
    public void DestroyedCollider_IsReplacedByTheNextSupportedTrigger()

    HealthyShape_IsKeptEvenWhenAnEarlierColliderBecomesUsable()

    Declaration
    public IEnumerator HealthyShape_IsKeptEvenWhenAnEarlierColliderBecomesUsable()
    Returns
    Type Description
    IEnumerator

    NestedRooms_InTheSameRegistry_FindTheInnermost(bool)

    Declaration
    public void NestedRooms_InTheSameRegistry_FindTheInnermost(bool innerCreatedFirst)
    Parameters
    Type Name Description
    bool innerCreatedFirst

    OnlyShapeThatStopsBeingATrigger_LeavesTheRoomContainingNothingOnTheNextFrame()

    Declaration
    public IEnumerator OnlyShapeThatStopsBeingATrigger_LeavesTheRoomContainingNothingOnTheNextFrame()
    Returns
    Type Description
    IEnumerator

    RoomWithoutAShape_LooksForOneAtMostOncePerFrame()

    Declaration
    public IEnumerator RoomWithoutAShape_LooksForOneAtMostOncePerFrame()
    Returns
    Type Description
    IEnumerator

    ShapeThatStopsBeingATrigger_FallsBackToTheNextTriggerOnTheNextFrame()

    Declaration
    public IEnumerator ShapeThatStopsBeingATrigger_FallsBackToTheNextTriggerOnTheNextFrame()
    Returns
    Type Description
    IEnumerator

    Shape_IsTheFirstSupportedTriggerCollider()

    Declaration
    public void Shape_IsTheFirstSupportedTriggerCollider()

    Shape_SkipsADisabledColliderForTheNextSupportedTrigger()

    Declaration
    public void Shape_SkipsADisabledColliderForTheNextSupportedTrigger()

    Shape_SkipsATriggerThatCannotAnswer()

    Declaration
    public void Shape_SkipsATriggerThatCannotAnswer()

    TryGetVolumeBounds_WithAShape_ReturnsTheShapeBounds()

    Declaration
    public void TryGetVolumeBounds_WithAShape_ReturnsTheShapeBounds()

    TryGetVolumeBounds_WithoutAShape_IsFalse()

    Declaration
    public void TryGetVolumeBounds_WithoutAShape_IsFalse()

    VolumeSize_IsTheSpaceTheShapeHolds()

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