static void Init()
    {
        // Get existing open window or if none, make a new one:
        ZEDEditor window = (ZEDEditor)EditorWindow.GetWindow(typeof(ZEDEditor), false, "ZED Camera");

        style.normal.textColor = Color.red;
        style.fontSize         = 15;
        style.margin.left      = 5;

        parameters = new sl.CameraInformations();
        window.Show();
    }
示例#2
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        ZEDEditor window = (ZEDEditor)EditorWindow.GetWindow(typeof(ZEDEditor));

        style.normal.textColor = Color.red;
        style.fontSize         = 15;
        style.margin.left      = 5;

        parameters = new sl.zed.StereoParameters();
        parameters.leftCam.disto  = new double[5];
        parameters.rightCam.disto = new double[5];

        window.Show();
    }