INTERNAL_GetMiniTypeThumbnailFromType() private method

private INTERNAL_GetMiniTypeThumbnailFromType ( Type managedType ) : Texture2D
managedType System.Type
return UnityEngine.Texture2D
Example #1
0
        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);
        }
Example #2
0
 /// <summary>
 ///   <para>Returns the thumbnail for the type.</para>
 /// </summary>
 /// <param name="type"></param>
 public static Texture2D GetMiniTypeThumbnail(System.Type type)
 {
     return(!typeof(MonoBehaviour).IsAssignableFrom(type) ? AssetPreview.INTERNAL_GetMiniTypeThumbnailFromType(type) : EditorGUIUtility.LoadIcon(type.FullName.Replace('.', '/') + " Icon"));
 }
Example #3
0
 public static Texture2D GetMiniTypeThumbnail(Type type)
 {
     return(AssetPreview.INTERNAL_GetMiniTypeThumbnailFromType(type));
 }