public void CheckOfPacakge(MQTT_UserPackageReceived package) { m_info = JsonUtility.FromJson <OVRBoundaryInfo>(package.m_message); DrawLineOf(m_info.boundaryGeometryArea, Color.green); DrawLineOf(m_info.boundaryGeometryOuter, Color.yellow); }
public static OVRBoundaryInfo GetBoundaryInfo() { OVRBoundaryInfo boundary = new OVRBoundaryInfo(); boundary.isBoundaryVisible = OVRManager.boundary.GetVisible(); boundary.isConfigured = OVRManager.boundary.GetConfigured(); boundary.boundaryDimensionArea = OVRManager.boundary.GetDimensions(OVRBoundary.BoundaryType.PlayArea); boundary.boundaryDimensionOuter = OVRManager.boundary.GetDimensions(OVRBoundary.BoundaryType.OuterBoundary); boundary.boundaryGeometryArea = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.PlayArea); boundary.boundaryGeometryOuter = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary); return(boundary); }
void Update() { m_boundaryInfo = TestWithTracker.GetBoundaryInfo(); }