升级框架版本

This commit is contained in:
Bob.Song
2025-11-12 17:24:02 +08:00
parent 4059c207c0
commit 5e6119a073
2246 changed files with 6233 additions and 313 deletions

View File

@@ -0,0 +1,64 @@
using System;
using System.IO;
using UnityEngine;
namespace NBC.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;
}
}
}
}