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