Пример #1
0
        [MenuItem("Hypercube/Copy current slice calibration", false, 300)]  //# is prio
        public static void openCubeWindowPrefs()
        {
            calibrator c = GameObject.FindObjectOfType <calibrator>();

            if (c)
            {
                c.copyCurrentSliceCalibration();
            }
            else
            {
                Debug.LogWarning("No calibrator was found, and therefore no copying occurred.");
            }
        }