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; }
private static PluginSettings InitializeAsset() { PluginSettings.Data data = PluginSettings.GenerateDefaultData(); return(PluginSettings.SetRuntimeData(data)); }