Optimized the loading method of the setting file

优化了配置文件的加载方式和途径。
This commit is contained in:
hevinci
2022-05-22 00:39:22 +08:00
parent d43d30f72f
commit a906a84721
21 changed files with 146 additions and 255 deletions

View File

@@ -105,7 +105,7 @@ namespace YooAsset.Editor
/// </summary>
private static void LoadSettingData()
{
_setting = YooAssetEditorSettingsHelper.LoadSettingData<AssetBundleCollectorSetting>();
_setting = EditorHelper.LoadSettingData<AssetBundleCollectorSetting>();
// IPackRule
{

View File

@@ -54,12 +54,10 @@ namespace YooAsset.Editor
VisualElement root = this.rootVisualElement;
// 加载布局文件
var visualAsset = YooAssetEditorSettingsData.Setting.AssetBundleCollectorUXML;
var visualAsset = EditorHelper.LoadWindowUXML<AssetBundleCollectorWindow>();
if (visualAsset == null)
{
Debug.LogError($"Not found {nameof(AssetBundleCollectorWindow)}.uxml in settings.");
return;
}
visualAsset.CloneTree(root);
// 导入导出按钮