mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class PointerTests

    Tests to verify pointer state and pointer direction

    Inheritance
    Object
    PointerTests
    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 PointerTests

    Methods

    Setup()

    Declaration
    public void Setup()

    Setup()

    Declaration
    public void Setup()

    TearDown()

    Declaration
    public void TearDown()

    TearDown()

    Declaration
    public void TearDown()

    TestDestroyOnSourceLostPointer()

    As GameObjects, pointers can be destroyed at any time. Utilize BaseControllerPointer.DestroyOnSourceLost property to test pointer cache does not break with null references (aka auto-destroyed pointers).

    Declaration
    public IEnumerator TestDestroyOnSourceLostPointer()
    Returns
    Type Description
    IEnumerator

    TestDisabledPointerCache()

    Test that buttons still work when pointer cache is disabled. Pointers that do not auto-destroy themselves on source lost should be destroyed by the input device manager creating the pointers

    Declaration
    public IEnumerator TestDisabledPointerCache()
    Returns
    Type Description
    IEnumerator

    TestLinePointers()

    Tests that line pointers and curve pointer work as expected by using default prefab implementations LinePointer should be a straight line ray while curve pointers should collide along the curve via ray-marching

    Declaration
    public IEnumerator TestLinePointers()
    Returns
    Type Description
    IEnumerator

    TestPointerCaching()

    Test that the same PokePointer

    1. is not destroyed
    2. retrieved and re-used from the pointer cache
    3. still click buttons and provides input after re-use
    Declaration
    public IEnumerator TestPointerCaching()
    Returns
    Type Description
    IEnumerator

    TestPointerDirectionToCameraDirection()

    Tests that right after being instantiated, the pointer's direction is in the same general direction as the forward direction of the camera

    Declaration
    public IEnumerator TestPointerDirectionToCameraDirection()
    Returns
    Type Description
    IEnumerator

    TestPointerDirectionToCameraDirection()

    Tests that right after being instantiated, the pointer's direction is in the same general direction as the forward direction of the camera

    Declaration
    public IEnumerator TestPointerDirectionToCameraDirection()
    Returns
    Type Description
    IEnumerator

    TestPointerFOV()

    Tests that pointers behave correctly when interacting with objects inside and outside its field of view

    Declaration
    public IEnumerator TestPointerFOV()
    Returns
    Type Description
    IEnumerator

    TestPointerFOVLargeCollider()

    Test pointers are correctly enabled when interacting with colliders that are visible, but whose bounds are outside the camera FOV.

    Declaration
    public IEnumerator TestPointerFOVLargeCollider()
    Returns
    Type Description
    IEnumerator

    TestSpherePointerInsideGrabbable()

    Tests that sphere pointer grabs object when hand is inside a giant grabbable

    Declaration
    public IEnumerator TestSpherePointerInsideGrabbable()
    Returns
    Type Description
    IEnumerator
    In This Article
    • Methods
      • Setup()
      • Setup()
      • TearDown()
      • TearDown()
      • TestDestroyOnSourceLostPointer()
      • TestDisabledPointerCache()
      • TestLinePointers()
      • TestPointerCaching()
      • TestPointerDirectionToCameraDirection()
      • TestPointerDirectionToCameraDirection()
      • TestPointerFOV()
      • TestPointerFOVLargeCollider()
      • TestSpherePointerInsideGrabbable()
    Back to top Generated by DocFX