public static Texture2D GetMiniTypeThumbnail(Type type)
{
Texture2D result;
if (typeof(MonoBehaviour).IsAssignableFrom(type))
{
result = EditorGUIUtility.LoadIcon(type.FullName.Replace('.', '/') + " Icon");
}
else
{
result = AssetPreview.INTERNAL_GetMiniTypeThumbnailFromType(type);
}
return(result);
}