结构大修改,改成朴实无华的结构,不过度架构。能跑就行

This commit is contained in:
2025-12-23 00:09:39 +08:00
parent 384f11f620
commit 3d14085920
2837 changed files with 149714 additions and 1100 deletions

View File

@@ -0,0 +1,64 @@
using System;
using System.IO;
using UnityEngine;
namespace NBC.Asset.Editor
{
[Serializable]
public class BuildAsset
{
/// <summary>
/// 资源路径
/// </summary>
public string Path;
/// <summary>
/// 可寻址地址
/// </summary>
public string Address;
/// <summary>
/// 资源类型
/// </summary>
public string Type;
/// <summary>
/// 资源所属的bundle包
/// </summary>
public string Bundle;
/// <summary>
/// 资源标签
/// </summary>
public string Tags;
// /// <summary>
// /// 资源依赖
// /// </summary>
// public string[] Dependencies = Array.Empty<string>();
/// <summary>
/// 资源所属组
/// </summary>
[HideInInspector] public GroupConfig Group;
private long _size;
public long Size
{
get
{
if (_size == 0)
{
if (File.Exists(Path))
{
FileInfo info = new FileInfo(Path);
_size = info.Length;
}
}
return _size;
}
}
}
}