summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs b/WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs
index 0fd18df..4f63517 100644
--- a/WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs
+++ b/WorldlineKeepers/Assets/Scripts/Managers/ResourceManager.cs
@@ -28,6 +28,17 @@ namespace WK
#endif
}
+ public T LoadAssetFullPath<T>(string fullPath) where T : UnityEngine.Object
+ {
+#if UNITY_EDITOR
+ string path = fullPath;
+ T obj = AssetDatabase.LoadAssetAtPath(path, typeof(T)) as T;
+ return obj;
+#else
+ return null ;
+#endif
+ }
+
/// <summary>
/// ¸ù¾Ýfilekey¶Á×ÊÔ´
/// </summary>