12345678910111213141516171819202122232425262728 |
- //using XGame.Framework.Asset;
- //using System.Reflection;
- //namespace XGame.Editor.Build.AssetBundles
- //{
- // /// <summary>
- // /// Manifest的编辑器扩展方法
- // /// </summary>
- // public static class AssetReferenceManifestExt
- // {
- // /// <summary>
- // /// 编辑器扩展方法
- // /// 设置AssetReferenceInfo数组
- // /// </summary>
- // /// <param name="manifest"></param>
- // /// <param name="_references"></param>
- // public static void SetAssetReferences(this AssetReferencesSo manifest, AssetReferenceInfo[] _references)
- // {
- // var fileInfo = manifest.GetType().GetField("references", BindingFlags.NonPublic | BindingFlags.Instance);
- // fileInfo?.SetValue(manifest, _references);
- // }
- // }
- //}
|