Class PointerTests
Tests to verify pointer state and pointer direction
Inherited Members
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
- is not destroyed
- retrieved and re-used from the pointer cache
- 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 |