文档

Unity Engine

Unity Engine

GetMiniTypeThumbnail(Type)

Obtains the generic icon for the given type.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static Texture2D GetMiniTypeThumbnail(Type type)

Parameters

type

The class type to return the icon for, for example typeof(Texture2D) or typeof(GameObject).

Returns

Type

Description

Texture2DThe icon of the type as a Texture2D object.