Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/Utils.cs
/// <summary>
/// Converts a search item into any valid UnityEngine.Object if possible.
/// </summary>
/// <param name="item">Item to be converted</param>
/// <param name="filterType">The object should be converted in this type if possible.</param>
/// <returns></returns>
Converts a search item into any valid UnityEngine.Object if possible.
Converts a search item into any valid UnityEngine . Object if possible .
public static UnityEngine.Object ToObject(SearchItem item, Type filterType)
        {
            if (item == null || item.provider == null)
                return null;
            return item.provider.toObject?.Invoke(item, filterType);
        }
public static UnityEngine . Object ToObject ( SearchItem item , Type filterType ) { if ( item == null || item . provider == null ) return null ; return item . provider . toObject ? . Invoke ( item , filterType ) ; }
Converts a search item into any valid UnityEngine.Object if possible.
Converts a search item into any valid UnityEngine . Object if possible .
None
item
SearchItem
Item to be converted
Item to be converted
filterType
Type
The object should be converted in this type if possible.
The object should be converted in this type if possible .