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

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

    Show / Hide Table of Contents

    Class TestInputUtilities

    Utility class to provide helpful functions for applying input in tests

    Inheritance
    Object
    TestInputUtilities
    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 static class TestInputUtilities

    Methods

    ExecuteGlobalClick(IMixedRealityInputSource, MixedRealityInputAction, Func<IEnumerator>)

    Fires a global input click event by given input source and for given input action type. If testExec is not null, the function will execute in between the input down and input up raised events. The testExec function parameter is useful for executing tests and asserts in between raised events.

    Declaration
    public static IEnumerator ExecuteGlobalClick(IMixedRealityInputSource defaultInputSource, MixedRealityInputAction inputAction, Func<IEnumerator> testExec = null)
    Parameters
    Type Name Description
    IMixedRealityInputSource defaultInputSource
    MixedRealityInputAction inputAction
    Func<IEnumerator> testExec
    Returns
    Type Description
    IEnumerator

    ExecuteSpeechCommand(String, MixedRealityInputAction, IMixedRealityInputSource)

    Fires speech command to default input system with given string and input action type. If no input source is provided, then the first detected input source is used in conjunction with the raised event.

    Declaration
    public static IEnumerator ExecuteSpeechCommand(string voiceCommand, MixedRealityInputAction inputAction, IMixedRealityInputSource inputSource = null)
    Parameters
    Type Name Description
    String voiceCommand
    MixedRealityInputAction inputAction
    IMixedRealityInputSource inputSource
    Returns
    Type Description
    IEnumerator
    Back to top Generated by DocFX