From b1b0563d8427f869085d00f37f8b5d2a14b326eb Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 22 Apr 2023 10:27:46 +0800 Subject: [PATCH] update editor code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加右键创建配置文件 --- .../Editor/AssetBundleBuilder/AssetBundleBuilderSetting.cs | 1 + .../Editor/AssetBundleCollector/AssetBundleCollectorSetting.cs | 1 + .../ShaderVariantCollector/ShaderVariantCollectorSetting.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderSetting.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderSetting.cs index 19f23d4..3d93766 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderSetting.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderSetting.cs @@ -3,6 +3,7 @@ using UnityEngine; namespace YooAsset.Editor { + [CreateAssetMenu(fileName = "AssetBundleBuilderSetting", menuName = "YooAsset/Create AssetBundle Builder Settings")] public class AssetBundleBuilderSetting : ScriptableObject { /// diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSetting.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSetting.cs index 1563147..3aba54b 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSetting.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorSetting.cs @@ -6,6 +6,7 @@ using UnityEngine; namespace YooAsset.Editor { + [CreateAssetMenu(fileName = "AssetBundleCollectorSetting", menuName = "YooAsset/Create AssetBundle Collector Settings")] public class AssetBundleCollectorSetting : ScriptableObject { /// diff --git a/Assets/YooAsset/Editor/ShaderVariantCollector/ShaderVariantCollectorSetting.cs b/Assets/YooAsset/Editor/ShaderVariantCollector/ShaderVariantCollectorSetting.cs index 658cb1a..135031b 100644 --- a/Assets/YooAsset/Editor/ShaderVariantCollector/ShaderVariantCollectorSetting.cs +++ b/Assets/YooAsset/Editor/ShaderVariantCollector/ShaderVariantCollectorSetting.cs @@ -2,6 +2,7 @@ namespace YooAsset.Editor { + [CreateAssetMenu(fileName = "ShaderVariantCollectorSetting", menuName = "YooAsset/Create ShaderVariant Collector Settings")] public class ShaderVariantCollectorSetting : ScriptableObject { ///