public void Reset() { CreateSettingsAsset(); m_editorSyncedSettings.ClearPrefs(); m_editorSyncedSettings = null; GetOrCreateSyncedSettings(); m_editorSyncedSettings.Sync(); GridWindow.ResetSceneGrid(); }
private void GetOrCreateSyncedSettings() { if (m_editorSyncedSettings == null || !m_editorSyncedSettings.hasSettings) { if (GridSettings.instance == null) { CreateSettingsAsset(); } m_editorSyncedSettings = new EditorSyncedSettings(GridSettings.instance, "mx_gridsettings"); } }