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; }