首次提交
This commit is contained in:
27
Assets/Scripts/NBC/Asset/Editor/Configs/GroupConfig.cs
Normal file
27
Assets/Scripts/NBC/Asset/Editor/Configs/GroupConfig.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace NBC.Asset.Editor
|
||||
{
|
||||
[Serializable]
|
||||
public class GroupConfig : ISelectTag
|
||||
{
|
||||
public string Name;
|
||||
[Header("是否启用")] public bool Enable = true;
|
||||
[Header("打包模式")] public BundleMode BundleMode = BundleMode.Single;
|
||||
[Header("寻址模式")] public AddressMode AddressMode = AddressMode.None;
|
||||
[Header("标签(,分隔)")] public string Tags;
|
||||
[Header("收集源")] public List<Object> Collectors = new List<Object>();
|
||||
[Header("过滤器规则")] public FilterEnum FilterEnum = FilterEnum.All;
|
||||
public string Filter = "*";
|
||||
|
||||
|
||||
public string ShowTags
|
||||
{
|
||||
get => Tags;
|
||||
set => Tags = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac530b0df8bb42a0a6f08ecc1cdf8984
|
||||
timeCreated: 1673923840
|
||||
7
Assets/Scripts/NBC/Asset/Editor/Configs/ISelectTag.cs
Normal file
7
Assets/Scripts/NBC/Asset/Editor/Configs/ISelectTag.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace NBC.Asset.Editor
|
||||
{
|
||||
public interface ISelectTag
|
||||
{
|
||||
string ShowTags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 149b01c9c6834709a5e3c7132f1b62e2
|
||||
timeCreated: 1679564478
|
||||
18
Assets/Scripts/NBC/Asset/Editor/Configs/PackageConfig.cs
Normal file
18
Assets/Scripts/NBC/Asset/Editor/Configs/PackageConfig.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBC.Asset.Editor
|
||||
{
|
||||
// [CreateAssetMenu(menuName = "NB/Res/" + nameof(PackageConfig), fileName = nameof(PackageConfig))]
|
||||
[Serializable]
|
||||
public class PackageConfig
|
||||
{
|
||||
public string Name;
|
||||
[Header("是否启用")] public bool Enable = true;
|
||||
[Header("是否默认包")] public bool Default = true;
|
||||
[Header("打包选项")] public BuildAssetBundleOptions BundleOptions = BuildAssetBundleOptions.ChunkBasedCompression;
|
||||
[Header("资源组")] public List<GroupConfig> Groups = new List<GroupConfig>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b762a65e11264f408a0a62631dfcfa3a
|
||||
timeCreated: 1673925286
|
||||
Reference in New Issue
Block a user