public static bool SetBoundaryLookAndFeel(BoundaryLookAndFeel lookAndFeel) { if (version >= OVRP_1_8_0.version) { return(OVRP_1_8_0.ovrp_SetBoundaryLookAndFeel(lookAndFeel) == OVRPlugin.Bool.True); } else { return(false); } }
public void Session_SetBoundaryLookAndFeel() { IntPtr sessionPtr = CreateSession(); Assert.AreNotEqual(IntPtr.Zero, sessionPtr); var boundaryLookAndFeel = new BoundaryLookAndFeel() { Color = new Colorf(1, 0, 0, 1) }; Result result = OVR.SetBoundaryLookAndFeel(sessionPtr, ref boundaryLookAndFeel); Assert.IsFalse(result == Result.Success_BoundaryInvalid, "Boundaries are not set on Oculus. Boundaries require Oculus Touch. Please run a full setup in Oculus settings to set up boundaries before runing the test."); Assert.IsTrue(result >= Result.Success, "Failed to call SetBoundaryLookAndFeel"); }
public static extern Bool ovrp_SetBoundaryLookAndFeel(BoundaryLookAndFeel lookAndFeel);
public static extern Result ovr_SetBoundaryLookAndFeel(ovrSession session, ref BoundaryLookAndFeel lookAndFeel);