?Does anyone know if there is a way to make a filter by folder when calling EditorGUIUtility.ShowObjectPicker?
I don’t think the string based search filter allows for folders to be passed as parameters. It is one of the reasons why AssetDatabase.FindAssets method has a special parameter of type string array to pass in folders in which to search. The SearchFilter
class in unity does have a public string[] folders
property which allows you to set the folders to search in with this SearchFilter
instance. This property is set by the AssetDatabase.FindAssets
method in its implementation. But the ObjectSelector
class which is used by the EditorGUIUtility.ShowObjectPicker
only supports the string based search filters at the moment.