2023-01-14 11:31:39 -05:00

23 lines
491 B
C#

using AssetRipper.Assets;
using AssetRipper.Assets.Collections;
namespace AssetRipper.SourceGenerated.Extensions
{
public static class IAssetContainerExtensions
{
public static string GetAssetLogString(this IAssetContainer _this, long pathID)
{
IUnityObjectBase asset = _this.GetAsset(pathID);
string? name = asset.TryGetName();
if (name == null)
{
return $"{asset.ClassID}_{pathID}";
}
else
{
return $"{asset.ClassID}_{pathID}({name})";
}
}
}
}