// #if UNITY_EDITOR void Awake() { instance = this; // Init CameraTool on scene load // Selection.activeGameObject = FindObjectOfType<F3DCameraTool>().gameObject; F3DCameraToolEditor.camTool = this; }
void OnEnable() { SceneView.onSceneGUIDelegate -= OnSceneGUI; SceneView.onSceneGUIDelegate += OnSceneGUI; camTool = (F3DCameraTool)target; if (!camTool) { camTool = F3DCameraTool.instance; } camToolEditor = this; }
void OnEnable() { SceneView.duringSceneGui -= OnSceneGUI; SceneView.duringSceneGui += OnSceneGUI; camTool = (F3DCameraTool)target; if (!camTool) { camTool = F3DCameraTool.instance; } camToolEditor = this; }