Exemplo n.º 1
0
        //   #if UNITY_EDITOR
        void Awake()
        {
            instance = this;



            // Init CameraTool on scene load
            //    Selection.activeGameObject = FindObjectOfType<F3DCameraTool>().gameObject;

            F3DCameraToolEditor.camTool = this;
        }
Exemplo n.º 2
0
        void OnEnable()
        {
            SceneView.onSceneGUIDelegate -= OnSceneGUI;
            SceneView.onSceneGUIDelegate += OnSceneGUI;

            camTool = (F3DCameraTool)target;

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

            camToolEditor = this;
        }
Exemplo n.º 3
0
        void OnEnable()
        {
            SceneView.duringSceneGui -= OnSceneGUI;
            SceneView.duringSceneGui += OnSceneGUI;

            camTool = (F3DCameraTool)target;

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

            camToolEditor = this;
        }