using AssetRipper.SourceGenerated.Classes.ClassID_142; namespace AssetRipper.SourceGenerated.Extensions; public static class AssetBundleExtensions { /// /// 5.0.0 and greater /// public static bool HasPathExtension(UnityVersion version) => version.GreaterThanOrEquals(5); /// /// 5.0.0 and greater /// public static bool HasPathExtension(this IAssetBundle bundle) => HasPathExtension(bundle.Collection.Version); public static string GetAssetBundleName(this IAssetBundle bundle) { if (bundle.Has_AssetBundleName_R() && !bundle.AssetBundleName_R.IsEmpty) { return bundle.AssetBundleName_R; } else { return bundle.Collection.Bundle.Name; } } }