Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorGUIUtility   

EditorGUIUtility.ObjectContent  

static function ObjectContent (obj : Object, type : System.Type) : GUIContent

Description

Return a GUIContent object with the name and icon of an Object.

If the object is null, the icon will be picked according to type.