mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class PressableButtonTests

    Inheritance
    Object
    BasePlayModeTests
    PressableButtonTests
    Implements
    IPrebuildSetup
    Inherited Members
    BasePlayModeTests.Setup()
    BasePlayModeTests.TearDown()
    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 PressableButtonTests : BasePlayModeTests, IPrebuildSetup

    Properties

    PressableButtonsTestPrefabFilenames

    Declaration
    public static IEnumerable<string> PressableButtonsTestPrefabFilenames { get; }
    Property Value
    Type Description
    IEnumerable<String>

    Methods

    ButtonInstantiate(String)

    Declaration
    public IEnumerator ButtonInstantiate(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ButtonInstantiate(String)

    Declaration
    public IEnumerator ButtonInstantiate(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ButtonInstantiateDisableThenEnableBeforeStart(String)

    Some apps will instantiate a button, disable it while they do other setup, then enable it. This caused a bug where the button front plate would be flattened against the button. This tests to confirm that this has not regressed. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6024

    Declaration
    public IEnumerator ButtonInstantiateDisableThenEnableBeforeStart(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ButtonInstantiateDisableThenEnableBeforeStart(String)

    Some apps will instantiate a button, disable it while they do other setup, then enable it. This caused a bug where the button front plate would be flattened against the button. This tests to confirm that this has not regressed. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6024

    Declaration
    public IEnumerator ButtonInstantiateDisableThenEnableBeforeStart(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    CheckPhysicalPressableRouterEventsOnDisableInteractable()

    Tests if Interactable is internally disabled, then the PhysicalPressEventRouter should not invoke events in Interactable. Addresses issue 5833.

    Declaration
    public IEnumerator CheckPhysicalPressableRouterEventsOnDisableInteractable()
    Returns
    Type Description
    IEnumerator

    CheckPhysicalPressableRouterEventsOnDisableInteractable()

    Tests if Interactable is internally disabled, then the PhysicalPressEventRouter should not invoke events in Interactable. Addresses issue 5833.

    Declaration
    public IEnumerator CheckPhysicalPressableRouterEventsOnDisableInteractable()
    Returns
    Type Description
    IEnumerator

    DisablePressableButton(String)

    Test disabling the PressableButton GameObject and re-enabling

    Declaration
    public IEnumerator DisablePressableButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    DisablePressableButton(String)

    Test disabling the PressableButton GameObject and re-enabling

    Declaration
    public IEnumerator DisablePressableButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    PressButtonFast(String)

    This test reproduces P0 issue 4566 which didn't trigger a button with enabled backpressprotection if hands were moving too fast in low framerate

    Declaration
    public IEnumerator PressButtonFast(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    PressButtonFast(String)

    This test reproduces P0 issue 4566 which didn't trigger a button with enabled backpressprotection if hands were moving too fast in low framerate

    Declaration
    public IEnumerator PressButtonFast(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    PressButtonWhenSecondButtonIsNearby(String)

    Tests if button pressed event is triggered when a second button is overlapping right behind the first button

    Declaration
    public IEnumerator PressButtonWhenSecondButtonIsNearby(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    PressButtonWithHand(String)

    This test reproduces P0 issue 4263 which caused null pointers when pressing buttons See https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4683

    Declaration
    public IEnumerator PressButtonWithHand(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    PressButtonWithHand(String)

    This test reproduces P0 issue 4263 which caused null pointers when pressing buttons See https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4683

    Declaration
    public IEnumerator PressButtonWithHand(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ReleaseButton(String)

    This tests the release behavior of a button

    Declaration
    public IEnumerator ReleaseButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ReleaseButton(String)

    This tests the release behavior of a button

    Declaration
    public IEnumerator ReleaseButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    RotateButton(String)

    There was an issue where rotating a button after Start() had executed resulted in the front plate going in the wrong direction. This tests that it has not regressed. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6025

    Declaration
    public IEnumerator RotateButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    RotateButton(String)

    There was an issue where rotating a button after Start() had executed resulted in the front plate going in the wrong direction. This tests that it has not regressed. https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6025

    Declaration
    public IEnumerator RotateButton(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ScaleLocalDistances(String)

    Declaration
    public IEnumerator ScaleLocalDistances(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ScaleLocalDistances(String)

    Declaration
    public IEnumerator ScaleLocalDistances(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ScaleWorldDistances(String)

    Declaration
    public IEnumerator ScaleWorldDistances(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    ScaleWorldDistances(String)

    Declaration
    public IEnumerator ScaleWorldDistances(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    SwitchWorldToLocalDistanceMode(String)

    Declaration
    public IEnumerator SwitchWorldToLocalDistanceMode(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    SwitchWorldToLocalDistanceMode(String)

    Declaration
    public IEnumerator SwitchWorldToLocalDistanceMode(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    TriggerButtonFarInteraction(String)

    This test verifies that buttons will trigger with far interaction

    Declaration
    public IEnumerator TriggerButtonFarInteraction(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    TriggerButtonFarInteraction(String)

    This test verifies that buttons will trigger with far interaction

    Declaration
    public IEnumerator TriggerButtonFarInteraction(string prefabFilename)
    Parameters
    Type Name Description
    String prefabFilename
    Returns
    Type Description
    IEnumerator

    Implements

    IPrebuildSetup
    In This Article
    • Properties
      • PressableButtonsTestPrefabFilenames
    • Methods
      • ButtonInstantiate(String)
      • ButtonInstantiate(String)
      • ButtonInstantiateDisableThenEnableBeforeStart(String)
      • ButtonInstantiateDisableThenEnableBeforeStart(String)
      • CheckPhysicalPressableRouterEventsOnDisableInteractable()
      • CheckPhysicalPressableRouterEventsOnDisableInteractable()
      • DisablePressableButton(String)
      • DisablePressableButton(String)
      • PressButtonFast(String)
      • PressButtonFast(String)
      • PressButtonWhenSecondButtonIsNearby(String)
      • PressButtonWithHand(String)
      • PressButtonWithHand(String)
      • ReleaseButton(String)
      • ReleaseButton(String)
      • RotateButton(String)
      • RotateButton(String)
      • ScaleLocalDistances(String)
      • ScaleLocalDistances(String)
      • ScaleWorldDistances(String)
      • ScaleWorldDistances(String)
      • SwitchWorldToLocalDistanceMode(String)
      • SwitchWorldToLocalDistanceMode(String)
      • TriggerButtonFarInteraction(String)
      • TriggerButtonFarInteraction(String)
    • Implements
    Back to top Generated by DocFX