UnityEditor.AssetPreview.INTERNAL_GetMiniTypeThumbnailFromType C# (CSharp) Method

INTERNAL_GetMiniTypeThumbnailFromType() private method

private INTERNAL_GetMiniTypeThumbnailFromType ( Type managedType ) : Texture2D
managedType System.Type
return UnityEngine.Texture2D
        internal static extern Texture2D INTERNAL_GetMiniTypeThumbnailFromType(Type managedType);
        /// <summary>

Usage Example

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);
        }
All Usage Examples Of UnityEditor.AssetPreview::INTERNAL_GetMiniTypeThumbnailFromType