Class BoundsControlTests
Tests for runtime behavior of bounds control
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Tests.Experimental
Assembly: cs.temp.dll.dll
Syntax
public class BoundsControlTests
Methods
ActivationTypeTest()
Tests the different activation flags bounding box handles can be activated with
Declaration
public IEnumerator ActivationTypeTest()
Returns
Type | Description |
---|---|
IEnumerator |
BoundsControlInstantiate()
Verify that we can instantiate bounds control at runtime
Declaration
public IEnumerator BoundsControlInstantiate()
Returns
Type | Description |
---|---|
IEnumerator |
BoundsControlPaddingTest()
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 |
BoundsOverrideTest()
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 |
BoxDisplayFlattenAxisScaleTest()
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 |
BoxDisplayMaterialTest()
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 |
DisableObject()
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 |
HandleVisibilityTest()
Tests visibility changes of different handle types: scale, rotateX, rotateY, rotateZ. Makes sure rig isn't recreated and visibility restores as expected when disabling the entire control.
Declaration
public IEnumerator HandleVisibilityTest()
Returns
Type | Description |
---|---|
IEnumerator |
LinksFlattenTest()
Verifies links are getting disabled on flattening the bounds control without recreating any visuals
Declaration
public IEnumerator LinksFlattenTest()
Returns
Type | Description |
---|---|
IEnumerator |
LinksMaterialTest()
Tests changing the links material during runtime and making sure links and rig are not recreated.
Declaration
public IEnumerator LinksMaterialTest()
Returns
Type | Description |
---|---|
IEnumerator |
LinksRadiusTest()
Tests link radius config changes are applied to the link visual without recreating them.
Declaration
public IEnumerator LinksRadiusTest()
Returns
Type | Description |
---|---|
IEnumerator |
LinksShapeTest()
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 |
LinksVisibilityTest()
Tests toggling link visibility and verifying visuals are not recreated.
Declaration
public IEnumerator LinksVisibilityTest()
Returns
Type | Description |
---|---|
IEnumerator |
ManipulateViaAppBarFarInteraction()
Test starting and ending manipulating an object via the app bar
Declaration
public IEnumerator ManipulateViaAppBarFarInteraction()
Returns
Type | Description |
---|---|
IEnumerator |
ManipulationTetherTest()
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 |
ProximityOnScaleHandles()
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 |
RotateViaFarInteraction()
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 |
RotateViaHololens1Interaction()
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 |
RotateViaNearInteraction()
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 |
RotationHandleColliderPaddingTest()
Tests runtime configuration of rotation handle collider padding. Verifies collider of rotation handles are scaled according to new size value without recreating the visual or the rig
Declaration
public IEnumerator RotationHandleColliderPaddingTest()
Returns
Type | Description |
---|---|
IEnumerator |
RotationHandleFlattenTest()
Test for verifying that rotation 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 RotationHandleFlattenTest()
Returns
Type | Description |
---|---|
IEnumerator |
RotationHandleMaterialTest()
Tests runtime configuration of rotation handle materials. Verifies rotation 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 RotationHandleMaterialTest()
Returns
Type | Description |
---|---|
IEnumerator |
RotationHandlePrefabTest()
Test for verifying changing the handle prefabs during runtime and making sure the the entire rig won't be recreated
Declaration
public IEnumerator RotationHandlePrefabTest()
Returns
Type | Description |
---|---|
IEnumerator |
RotationHandleSizeTest()
Tests runtime configuration of rotation handle size. Verifies rotation handles are scaled according to new size value without recreating the visual or the rig
Declaration
public IEnumerator RotationHandleSizeTest()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleHandleColliderPaddingTest()
Tests runtime configuration of scale handle collider padding. Verifies collider of scale handles are scaled according to new size value without recreating the visual or the rig
Declaration
public IEnumerator ScaleHandleColliderPaddingTest()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleHandleMaterialTest()
Tests runtime configuration of scale handle materials. Verifies scale 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 ScaleHandleMaterialTest()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleHandlePrefabTest()
Test for verifying changing the handle prefabs during runtime in regular and flatten mode and making sure the the entire rig won't be recreated
Declaration
public IEnumerator ScaleHandlePrefabTest()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleHandleSizeTest()
Tests runtime configuration of scale handle size. Verifies scale handles are scaled according to new size value without recreating the visual or the rig
Declaration
public IEnumerator ScaleHandleSizeTest()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleMinMax()
This tests the minimum and maximum scaling for the bounds control.
Declaration
public IEnumerator ScaleMinMax()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleViaFarInteraction()
Tests scaling of bounds control by grabbing a corner with the far interaction hand ray
Declaration
public IEnumerator ScaleViaFarInteraction()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleViaHoloLens1Interaction()
Uses far interaction (HoloLens 1 style) to scale the bounds control
Declaration
public IEnumerator ScaleViaHoloLens1Interaction()
Returns
Type | Description |
---|---|
IEnumerator |
ScaleViaNearInteration()
Uses near interaction to scale the bounds control by directly grabbing corner
Declaration
public IEnumerator ScaleViaNearInteration()
Returns
Type | Description |
---|---|
IEnumerator |
SetTarget()
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 |
Setup()
Declaration
public void Setup()
ShutdownMrtk()
Declaration
public void ShutdownMrtk()
UpdateTransformUpdatesBounds()
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 |