Пример #1
0
        public static void FocusAsset()
        {
            PluginSettings settings = Resources.Load <PluginSettings>(PluginSettings.FILE_PATH);

            if (settings == null)
            {
                PluginSettings.Data defaultData = PluginSettings.GenerateDefaultData();
                settings = PluginSettings.SetRuntimeData(defaultData);
            }

            UnityEditor.EditorGUIUtility.PingObject(settings);
            UnityEditor.Selection.activeObject = settings;
        }
Пример #2
0
 private static PluginSettings InitializeAsset()
 {
     PluginSettings.Data data = PluginSettings.GenerateDefaultData();
     return(PluginSettings.SetRuntimeData(data));
 }
Пример #3
0
 public static PluginSettings SetGlobalValues(PluginSettings.Data data)
 {
     return(PluginSettings.SetRuntimeData(data));
 }