diff --git a/JotunnLib/Managers/AssetManager.cs b/JotunnLib/Managers/AssetManager.cs
index 2229ae23c..95ba3b93e 100644
--- a/JotunnLib/Managers/AssetManager.cs
+++ b/JotunnLib/Managers/AssetManager.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
@@ -281,6 +282,17 @@ public AssetID GenerateAssetID(Object asset)
uint u = (uint)asset.name.GetStableHashCode();
return new AssetID(u, u, u, u);
}
+
+ ///
+ /// Generates a unique AssetID, from a given string
+ ///
+ ///
+ /// AssetID generated from the prefab's name
+ public AssetID GenerateAssetID(string asset)
+ {
+ uint u = (uint)asset.GetStableHashCode();
+ return new AssetID(u, u, u, u);
+ }
///
/// Clones a prefab and registers it in the SoftReference system with the same dependencies as the original asset