Example #1
0
 public void SetLookAndFeel(OVRBoundary.BoundaryLookAndFeel lookAndFeel)
 {
     OVRPlugin.BoundaryLookAndFeel boundaryLookAndFeel = new OVRPlugin.BoundaryLookAndFeel
     {
         Color = lookAndFeel.Color.ToColorf()
     };
     OVRPlugin.SetBoundaryLookAndFeel(boundaryLookAndFeel);
 }
Example #2
0
            /// <summary>Applies the Play Area's color to the Oculus Boundary system.</summary>
            public void applyColorToOculusPlayArea()
            {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
                if (PlayAreaManager.hasOculusPlayArea)
                {
                    OVRBoundary.BoundaryLookAndFeel oculusBoundaryAppearance = new OVRBoundary.BoundaryLookAndFeel();
                    oculusBoundaryAppearance.Color = color;
                    OVRManager.boundary.SetLookAndFeel(oculusBoundaryAppearance);
                    return;
                }
#endif
                Debug.LogWarning("[ImmerseumSDK] Attempted to apply simulated Play Area settings to the Oculus Play Area, but there was no Oculus Play Area found. No changes made.");
                return;
            }