protected override void OnEnable() { base.OnEnable(); // Load P3dWindowData.Load(); Application.logMessageReceived += OnLog; }
private void DrawTab3() { var data = P3dWindowData.Instance; data.MaxUndoSteps = EditorGUILayout.IntField("Max Undo Steps", data.MaxUndoSteps); if (GUILayout.Button("Save Settings Now") == true) { P3dWindowData.Save(); } }
protected override void OnDisable() { base.OnDisable(); PaintEnd(); Revert(); // Save P3dWindowData.Save(); Application.logMessageReceived -= OnLog; }