We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class TestPointer

    A simple pointer that is just used for Unity play mode tests. It doesn't update anything itself - it is expected that any test using it will manually update data as necessary. If you would like to setup pointer parameters in data (e.g. a prefab), you can use FocusRaycastTestProxy.

    Inheritance
    Object
    TestPointer
    Namespace: Microsoft.MixedReality.Toolkit.Tests
    Assembly: cs.temp.dll.dll
    Syntax
    public class TestPointer : GenericPointer

    Constructors

    TestPointer()

    Declaration
    public TestPointer()

    Properties

    Position

    Declaration
    public override Vector3 Position { get; }
    Property Value
    Type Description
    Vector3

    Rotation

    Declaration
    public override Quaternion Rotation { get; }
    Property Value
    Type Description
    Quaternion

    Methods

    OnPostSceneQuery()

    Declaration
    public override void OnPostSceneQuery()

    OnPreCurrentPointerTargetChange()

    Declaration
    public override void OnPreCurrentPointerTargetChange()

    OnPreSceneQuery()

    Declaration
    public override void OnPreSceneQuery()

    Reset()

    Declaration
    public override void Reset()

    SetFromTestProxy(FocusRaycastTestProxy)

    Initialize all applicable settings on this pointer from testProxy and then set this pointer active, so that it will update its Result in the next Update().

    Declaration
    public void SetFromTestProxy(FocusRaycastTestProxy testProxy)
    Parameters
    Type Name Description
    FocusRaycastTestProxy testProxy
    In This Article
    Back to top Generated by DocFX