Class BoundsControlTests
Tests for runtime behavior of bounds control
Inheritance
BoundsControlTests
Assembly: cs.temp.dll.dll
public class BoundsControlTests
Methods
Tests the different activation flags bounding box handles can be activated with
Declaration
public IEnumerator ActivationTypeTest()
Returns
Type |
Description |
IEnumerator |
|
Verify that we can instantiate bounds control at runtime
Declaration
public IEnumerator BoundsControlInstantiate()
Returns
Type |
Description |
IEnumerator |
|
Tests adding padding to the bounds of a bounds control and verifies if handles have moved accordingly.
Also verifies that visuals didn't get recreated during padding value changes.
Declaration
public IEnumerator BoundsControlPaddingTest()
Returns
Type |
Description |
IEnumerator |
|
Test that if we toggle the bounding box's active status,
that the size of the boundsOverride is consistent, even
when BoxPadding is set.
Declaration
public IEnumerator BoundsOverridePaddingReset()
Returns
Type |
Description |
IEnumerator |
|
Test that if we update the bounds of a box collider, that the corners will move correctly
Declaration
public IEnumerator BoundsOverrideTest()
Returns
Type |
Description |
IEnumerator |
|
Tests scaling of box display after flattening bounds control during runtime
and making sure neither box display nor rig get recreated.
Declaration
public IEnumerator BoxDisplayFlattenAxisScaleTest()
Returns
Type |
Description |
IEnumerator |
|
Tests changing the box display default and grabbed material during runtime,
making sure neither box display nor rig get recreated.
Declaration
public IEnumerator BoxDisplayMaterialTest()
Returns
Type |
Description |
IEnumerator |
|
Ensure that while using BoundingBox, if that object gets
deactivated, that BoundingBox no longer transforms that object.
Declaration
public IEnumerator DisableObject()
Returns
Type |
Description |
IEnumerator |
|
Uses near interaction to scale the bounds control by directly grabbing corner
Declaration
public IEnumerator FlickeringBoundsTest()
Returns
Type |
Description |
IEnumerator |
|
Verify correct collider attachment for handles after bounds control instantiation
Declaration
public IEnumerator HandleColliderInstantiation(BoundsControlTests.HandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Tests runtime configuration of handle collider padding.
Verifies collider of handles are scaled according to new size value
without recreating the visual or the rig
Declaration
public IEnumerator HandleColliderPaddingTest(BoundsControlTests.HandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Tests runtime configuration of handle materials.
Verifies handle default and grabbed material are properly replaced in all visuals when
setting the material in the config as well as validating that neither the rig nor the visuals get recreated.
Declaration
public IEnumerator HandleMaterialTest(BoundsControlTests.HandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Tests runtime configuration of handle size.
Verifies handles are scaled according to new size value without recreating the visual or the rig
Declaration
public IEnumerator HandleSizeTest(BoundsControlTests.HandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Verifies links are getting disabled on flattening the bounds control without recreating any visuals
Declaration
public IEnumerator LinksFlattenTest()
Returns
Type |
Description |
IEnumerator |
|
Tests changing the links material during runtime and making sure links and rig are not recreated.
Declaration
public IEnumerator LinksMaterialTest()
Returns
Type |
Description |
IEnumerator |
|
Tests link radius config changes are applied to the link visual without recreating them.
Declaration
public IEnumerator LinksRadiusTest()
Returns
Type |
Description |
IEnumerator |
|
Verifies link shapes get applied to link visuals once they are changed in the configuration.
Makes sure links are not destroyed but only mesh filter gets replaced.
Declaration
public IEnumerator LinksShapeTest()
Returns
Type |
Description |
IEnumerator |
|
Tests toggling link visibility and verifying visuals are not recreated.
Declaration
public IEnumerator LinksVisibilityTest()
Returns
Type |
Description |
IEnumerator |
|
Test starting and ending manipulating an object via the app bar
Declaration
public IEnumerator ManipulateViaAppBarFarInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test starting and ending manipulating an object via the app bar
Declaration
public IEnumerator ManipulateViaAppBarMotionController()
Returns
Type |
Description |
IEnumerator |
|
Tests that draw tether flag gets propagated to NearInteractionGrabbable on configuration changes.
Makes sure that rig / visuals aren't recreated.
Declaration
public IEnumerator ManipulationTetherTest()
Returns
Type |
Description |
IEnumerator |
|
Test for verifying that per axis handles are properly switched off/on when flattening/ unflattening the rig.
Makes sure rig and handles are not recreated on changing flattening mode.
Declaration
public IEnumerator PerAxisHandleFlattenTest(BoundsControlTests.PerAxisHandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Test for verifying changing the per axis handle prefabs during runtime
and making sure the entire rig won't be recreated
Declaration
public IEnumerator PerAxisHandlePrefabTest(BoundsControlTests.PerAxisHandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Tests visibility changes of per axis handle types.
Makes sure rig isn't recreated and visibility restores as expected when disabling the entire control.
Declaration
public IEnumerator PerAxisHandleVisibilityTest(BoundsControlTests.PerAxisHandleTestData testData)
Parameters
Returns
Type |
Description |
IEnumerator |
|
Tests proximity scaling on scale handles of bounds control
Verifies default behavior of handles with effect enabled / disabled as well as custom runtime configured scaling / distance values
Declaration
public IEnumerator ProximityOnScaleHandles()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via far interaction, while moving extremely slowly.
Rotation amount should be coherent even with extremely small per-frame motion
Declaration
public IEnumerator RotateVerySlowlyViaFarInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via motion controller, while moving extremely slowly.
Rotation amount should be coherent even with extremely small per-frame motion
Declaration
public IEnumerator RotateVerySlowlyViaMotionController()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via near interaction, while moving extremely slowly.
Rotation amount should be coherent even with extremely small per-frame motion
Declaration
public IEnumerator RotateVerySlowlyViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via far interaction
Verifies gameobject has rotation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator RotateViaFarInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via HoloLens 1 interaction / GGV
Verifies gameobject has rotation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator RotateViaHololens1Interaction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via motion controller
Verifies gameobject has rotation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator RotateViaMotionController()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation via near interaction
Verifies gameobject has rotation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator RotateViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control rotation constraints via near interaction.
Verifies gameobject won't rotate when rotation constraint is applied.
Declaration
public IEnumerator RotationConstraintViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
This tests the minimum and maximum scaling for the bounds control when target is its child.
Declaration
public IEnumerator ScaleChildTargetMinMax()
Returns
Type |
Description |
IEnumerator |
|
Test for verifying changing the handle prefabs during runtime
in regular and flatten mode and making sure the entire rig won't be recreated
Declaration
public IEnumerator ScaleHandlePrefabTest()
Returns
Type |
Description |
IEnumerator |
|
Tests visibility changes of scale handles.
Makes sure rig isn't recreated and visibility restores as expected when disabling the entire control.
Declaration
public IEnumerator ScaleHandleVisibilityTest()
Returns
Type |
Description |
IEnumerator |
|
This tests the minimum and maximum scaling for the bounds control.
Declaration
public IEnumerator ScaleMinMax()
Returns
Type |
Description |
IEnumerator |
|
Uses near interaction to scale the bounds control by directly grabbing corner - precise scaling
Declaration
public IEnumerator ScaleNonUniform()
Returns
Type |
Description |
IEnumerator |
|
Tests scaling of bounds control by grabbing a corner with the far interaction hand ray
Declaration
public IEnumerator ScaleViaFarInteraction()
Returns
Type |
Description |
IEnumerator |
|
Uses far interaction (HoloLens 1 style) to scale the bounds control
Declaration
public IEnumerator ScaleViaHoloLens1Interaction()
Returns
Type |
Description |
IEnumerator |
|
Tests scaling of bounds control by grabbing a corner with the motion controller
Declaration
public IEnumerator ScaleViaMotionController()
Returns
Type |
Description |
IEnumerator |
|
Uses near interaction to scale the bounds control by directly grabbing corner - uniform scaling
Declaration
public IEnumerator ScaleViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
Tests setting a target in code that is a different gameobject than the gameobject the bounds control component is attached to
Declaration
public IEnumerator SetTarget()
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator Setup()
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator TearDown()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control translation via far interaction
Verifies gameobject has translation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator TranslateViaFarInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control translation via HoloLens 1 interaction / GGV
Verifies gameobject has translation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator TranslateViaHololens1Interaction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control translation via motion controller
Verifies gameobject has translation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator TranslateViaMotionController()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control translation via near interaction
Verifies gameobject has translation in one axis only applied and no other transform changes happen during interaction
Declaration
public IEnumerator TranslateViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test bounds control translate constraints via near interaction.
Verifies gameobject won't translate when MoveAxisConstraint is applied.
Declaration
public IEnumerator TranslationConstraintViaNearInteraction()
Returns
Type |
Description |
IEnumerator |
|
Test that changing the transform of the bounds control target (rotation, scale, translation)
updates the rig bounds
Declaration
public IEnumerator UpdateTransformUpdatesBounds()
Returns
Type |
Description |
IEnumerator |
|