コード例 #1
0
        void OnEnable()
        {
            SceneView.onSceneGUIDelegate -= OnSceneGUI;
            SceneView.onSceneGUIDelegate += OnSceneGUI;

            camTool = (F3DCameraTool)target;

            if (!camTool)
            {
                camTool = F3DCameraTool.instance;
            }

            camToolEditor = this;
        }
コード例 #2
0
        void OnEnable()
        {
            SceneView.duringSceneGui -= OnSceneGUI;
            SceneView.duringSceneGui += OnSceneGUI;

            camTool = (F3DCameraTool)target;

            if (!camTool)
            {
                camTool = F3DCameraTool.instance;
            }

            camToolEditor = this;
        }