private void LoadUserPreferences()
 {
     if (_preferences == null)
     {
         _preferences = ProjectSettings.GetProjectSettings <UserPreferences>();
     }
 }
        private static string ModifyProjectFile(string name, string content)
        {
            if (_preferences == null)
            {
                _preferences = ProjectSettings.GetProjectSettings <UserPreferences>();
            }

            StringBuilder builder = new StringBuilder(content);

            if (_preferences.UseNamespace)
            {
                builder.Replace("<RootNamespace></RootNamespace>", string.Format("<RootNamespace>{0}</RootNamespace>", _preferences.RootNamespace));
            }

            return(builder.ToString());
        }
Exemple #3
0
        public static void ShowToolkitUserPreferences()
        {
            UserPreferences preferences = ProjectSettings.GetProjectSettings <UserPreferences>();

            Selection.SetActiveObjectWithContext(preferences, null);
        }