Skip to content

Commit d0592cf

Browse files
authored
Fix
1 parent b909a8b commit d0592cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Runtime/EditorStorage.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#if UNITY_EDITOR
1+
#if UNITY_EDITOR
22
using System.Collections.Generic;
3+
using System.Linq;
34
using UnityEngine;
45
using UnityEditor;
56
#if ODIN_INSPECTOR
@@ -13,7 +14,7 @@ public static class EditorStorage
1314
public static List<T> GetAllAssetsOfType<T>() where T : Object
1415
{
1516
#if ODIN_INSPECTOR
16-
var assets = AssetUtilities.GetAllAssetsOfType<ScriptableObject>().ToList();
17+
var assets = AssetUtilities.GetAllAssetsOfType<T>().ToList();
1718
#else
1819
var paths = AssetDatabase.GetAllAssetPaths();
1920
var assets = new List<T>();

0 commit comments

Comments
 (0)