AssetReferenceManifestExt.cs 812 B

12345678910111213141516171819202122232425262728
  1. //using XGame.Framework.Asset;
  2. //using System.Reflection;
  3. //namespace XGame.Editor.Build.AssetBundles
  4. //{
  5. // /// <summary>
  6. // /// Manifest的编辑器扩展方法
  7. // /// </summary>
  8. // public static class AssetReferenceManifestExt
  9. // {
  10. // /// <summary>
  11. // /// 编辑器扩展方法
  12. // /// 设置AssetReferenceInfo数组
  13. // /// </summary>
  14. // /// <param name="manifest"></param>
  15. // /// <param name="_references"></param>
  16. // public static void SetAssetReferences(this AssetReferencesSo manifest, AssetReferenceInfo[] _references)
  17. // {
  18. // var fileInfo = manifest.GetType().GetField("references", BindingFlags.NonPublic | BindingFlags.Instance);
  19. // fileInfo?.SetValue(manifest, _references);
  20. // }
  21. // }
  22. //}