日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class BoundsControlTests

    Tests for runtime behavior of bounds control

    Inheritance
    Object
    BoundsControlTests
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Tests
    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

    BoundsOverridePaddingReset()

    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

    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

    FlickeringBoundsTest()

    Uses near interaction to scale the bounds control by directly grabbing corner

    Declaration
    public IEnumerator FlickeringBoundsTest()
    Returns
    Type Description
    IEnumerator

    HandleColliderInstantiation(BoundsControlTests.HandleTestData)

    Verify correct collider attachment for handles after bounds control instantiation

    Declaration
    public IEnumerator HandleColliderInstantiation(BoundsControlTests.HandleTestData testData)
    Parameters
    Type Name Description
    BoundsControlTests.HandleTestData testData
    Returns
    Type Description
    IEnumerator

    HandleColliderPaddingTest(BoundsControlTests.HandleTestData)

    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
    Type Name Description
    BoundsControlTests.HandleTestData testData
    Returns
    Type Description
    IEnumerator

    HandleMaterialTest(BoundsControlTests.HandleTestData)

    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
    Type Name Description
    BoundsControlTests.HandleTestData testData
    Returns
    Type Description
    IEnumerator

    HandleSizeTest(BoundsControlTests.HandleTestData)

    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
    Type Name Description
    BoundsControlTests.HandleTestData testData
    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

    ManipulateViaAppBarMotionController()

    Test starting and ending manipulating an object via the app bar

    Declaration
    public IEnumerator ManipulateViaAppBarMotionController()
    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

    PerAxisHandleFlattenTest(BoundsControlTests.PerAxisHandleTestData)

    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
    Type Name Description
    BoundsControlTests.PerAxisHandleTestData testData
    Returns
    Type Description
    IEnumerator

    PerAxisHandlePrefabTest(BoundsControlTests.PerAxisHandleTestData)

    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
    Type Name Description
    BoundsControlTests.PerAxisHandleTestData testData
    Returns
    Type Description
    IEnumerator

    PerAxisHandleVisibilityTest(BoundsControlTests.PerAxisHandleTestData)

    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
    Type Name Description
    BoundsControlTests.PerAxisHandleTestData testData
    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

    RotateVerySlowlyViaFarInteraction()

    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

    RotateVerySlowlyViaMotionController()

    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

    RotateVerySlowlyViaNearInteraction()

    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

    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

    RotateViaMotionController()

    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

    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

    RotationConstraintViaNearInteraction()

    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

    ScaleChildTargetMinMax()

    This tests the minimum and maximum scaling for the bounds control when target is its child.

    Declaration
    public IEnumerator ScaleChildTargetMinMax()
    Returns
    Type Description
    IEnumerator

    ScaleHandlePrefabTest()

    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

    ScaleHandleVisibilityTest()

    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

    ScaleMinMax()

    This tests the minimum and maximum scaling for the bounds control.

    Declaration
    public IEnumerator ScaleMinMax()
    Returns
    Type Description
    IEnumerator

    ScaleNonUniform()

    Uses near interaction to scale the bounds control by directly grabbing corner - precise scaling

    Declaration
    public IEnumerator ScaleNonUniform()
    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

    ScaleViaMotionController()

    Tests scaling of bounds control by grabbing a corner with the motion controller

    Declaration
    public IEnumerator ScaleViaMotionController()
    Returns
    Type Description
    IEnumerator

    ScaleViaNearInteraction()

    Uses near interaction to scale the bounds control by directly grabbing corner - uniform scaling

    Declaration
    public IEnumerator ScaleViaNearInteraction()
    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 IEnumerator Setup()
    Returns
    Type Description
    IEnumerator

    TearDown()

    Declaration
    public IEnumerator TearDown()
    Returns
    Type Description
    IEnumerator

    TranslateViaFarInteraction()

    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

    TranslateViaHololens1Interaction()

    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

    TranslateViaMotionController()

    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

    TranslateViaNearInteraction()

    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

    TranslationConstraintViaNearInteraction()

    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

    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
    Back to top Generated by DocFX