We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b909a8b commit d0592cfCopy full SHA for d0592cf
Runtime/EditorStorage.cs
@@ -1,5 +1,6 @@
1
-#if UNITY_EDITOR
+#if UNITY_EDITOR
2
using System.Collections.Generic;
3
+using System.Linq;
4
using UnityEngine;
5
using UnityEditor;
6
#if ODIN_INSPECTOR
@@ -13,7 +14,7 @@ public static class EditorStorage
13
14
public static List<T> GetAllAssetsOfType<T>() where T : Object
15
{
16
- var assets = AssetUtilities.GetAllAssetsOfType<ScriptableObject>().ToList();
17
+ var assets = AssetUtilities.GetAllAssetsOfType<T>().ToList();
18
#else
19
var paths = AssetDatabase.GetAllAssetPaths();
20
var assets = new List<T>();
0 commit comments