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 a400f57 commit 1610d5fCopy full SHA for 1610d5f
Editor/Builders/AssetsItemBuilder.cs
@@ -4,6 +4,7 @@
4
using TNRD.Utilities;
5
using UnityEditor;
6
using UnityEditor.IMGUI.Controls;
7
+using UnityEngine;
8
using UnityEngine.Assertions;
9
10
namespace TNRD.Builders
@@ -37,6 +38,12 @@ public AdvancedDropdownItem Build()
37
38
{
39
CreateItemForPath(root, assetPath);
40
}
41
+ else if (assetType == typeof(GameObject))
42
+ {
43
+ GameObject gameObject = AssetDatabase.LoadAssetAtPath<GameObject>(assetPath);
44
+ if (gameObject.GetComponent(interfaceType) != null)
45
+ CreateItemForPath(root, assetPath);
46
+ }
47
48
49
return root;
0 commit comments