コード例 #1
0
        private void DrawSurfaceGuide(float height, Color color)
        {
            Vector3 objectCenter           = GetCenter() + new Vector3(0, height, 0);
            Mesh    surfaceHeightGuideMesh = PrimitiveMeshGenerator.GenerateQuadHorizontal();

            Gizmos.color = color;
            Gizmos.DrawMesh(surfaceHeightGuideMesh, objectCenter, transform.rotation, playAreaSize);
        }
コード例 #2
0
 private void DrawPlayArea()
 {
     if (drawPlayArea)
     {
         Vector3 objectCenter = GetCenter();
         Mesh    playAreaCube = PrimitiveMeshGenerator.GenerateInsideOutCube();
         Gizmos.color = playAreaColor;
         if (extractPlayAreaSizeOnRun && PlayerPrefs.HasKey("PlayAreaSize_X") && PlayerPrefs.HasKey("PlayAreaSize_Z"))
         {
             playAreaSize = new Vector3(PlayerPrefs.GetFloat("PlayAreaSize_X"), VRGuideConstants.CEILING_HEIGHT, PlayerPrefs.GetFloat("PlayAreaSize_Z"));
         }
         Gizmos.DrawMesh(playAreaCube, objectCenter, transform.rotation, playAreaSize);
     }
 }