- Home /
EditorStyle: ObjectField Icon
We can manipulate the style of an ObjectField by changing EditorStyles.objectField. However, how can we get rid of the icon that the object field displays? The icon I'm referring to is the type icon (GameObject, Transform etc..).
Answer by absameen · Jul 04, 2012 at 12:49 AM
My solution for now is to offset the icon out of screen with contentOffset. I'm not sure if there's a better solution but this will have to do.
how are you actually applying the GUIStyle though, the GUILayout exists for it, but there is no constructor overload for objectfield which takes a GUIStyle ?
Your answer
Follow this Question
Related Questions
set Application icon from script for build? 0 Answers
Adding Icon and Text 3 Answers
Prevent component icons from hiding on select 0 Answers
How do I assign an icon or name to Game Object in Scene view? 1 Answer
Is it possible to change icon? 2 Answers