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
UnityAudioRoomComponentShapeTests
Assembly: Tests.dll
Syntax
public class UnityAudioRoomComponentShapeTests : AudioRoomTestFixture
Constructors
UnityAudioRoomComponentShapeTests()
Declaration
public UnityAudioRoomComponentShapeTests()
Methods
ColliderAddedInTheFrameTheRoomIsEnabled_IsSeenFromTheNextFrame()
Declaration
public IEnumerator ColliderAddedInTheFrameTheRoomIsEnabled_IsSeenFromTheNextFrame()
Returns
ColliderAddedLongAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
Declaration
public IEnumerator ColliderAddedLongAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
Returns
ColliderDisabledAfterTheRoomIsEnabled_FallsBackToTheNextTriggerOnTheNextFrame()
Declaration
public IEnumerator ColliderDisabledAfterTheRoomIsEnabled_FallsBackToTheNextTriggerOnTheNextFrame()
Returns
ColliderEnabledAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
Declaration
public IEnumerator ColliderEnabledAfterTheRoomIsEnabled_IsSeenOnTheNextFrame()
Returns
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
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
RoomWithoutAShape_LooksForOneAtMostOncePerFrame()
Declaration
public IEnumerator RoomWithoutAShape_LooksForOneAtMostOncePerFrame()
Returns
ShapeThatStopsBeingATrigger_FallsBackToTheNextTriggerOnTheNextFrame()
Declaration
public IEnumerator ShapeThatStopsBeingATrigger_FallsBackToTheNextTriggerOnTheNextFrame()
Returns
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()