You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.IsTrue(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should be enabled, cube in front camera. Cube size {cube.transform.localScale} location {cube.transform.position}.");
Assert.IsFalse(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should NOT be enabled, cube behind camera. Cube size {cube.transform.localScale} location {cube.transform.position}.");
117
119
118
-
// For sphere and poke pointers, test that setting IgnoreCollidersNotInFOV works
Assert.IsTrue(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should be enabled because it is near object inside of FOV. Cube size {cube.transform.localScale} location {cube.transform.position}.");
139
155
}
140
156
157
+
141
158
/// <summary>
142
159
/// Tests that pointers behave correctly when interacting with objects inside and outside
143
160
/// its field of view
@@ -164,7 +181,43 @@ public IEnumerator TestPointerFieldOfView()
Assert.IsTrue(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should be enabled, cube in front camera. Cube size {cube.transform.localScale} location {cube.transform.position}.");
Assert.IsFalse(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should NOT be enabled, cube behind camera. Cube size {cube.transform.localScale} location {cube.transform.position}.");
198
+
199
+
// For sphere and poke pointers, test that setting IgnoreCollidersNotInFOV works
Assert.IsTrue(myPointer.IsInteractionEnabled,$"Pointer {myPointer.PointerName} should be enabled because it is near object inside of FOV. Cube size {cube.transform.localScale} location {cube.transform.position}.");
220
+
}
168
221
/// <summary>
169
222
/// Tests that sphere pointer grabs object when hand is inside a giant grabbable
0 commit comments