private void OnEnable() { targetScript = (DynamicBezierPathComponent)target; settings = targetScript.EditorOnlyToolSettings; if (!Safety()) { SceneView.currentDrawingSceneView.ShowNotification(new GUIContent(PathEditorUtility.EditorUnavailable)); return; } }