- Home /
Question by
KinanGH · Jan 19 at 10:27 AM ·
c#gameobjecteditor-scriptinggizmosicon
Get gameobject gizmo icon by script
Hi I want to get the gameobject icon (the one within the red box) by script so I can show the icon in an editor script:
I used PrefabUtility.GetIconForGameObject
but apparently this method returns only prefab related icon (like if this gameobject is a prefab instance or the original one and so on).
Is there another method I could use? Googling this topic doesn't bring anything.
annotation-2022-01-19-120930.png
(117.9 kB)
Comment
Your answer
Follow this Question
Related Questions
How to create instance from model without creating a clone? 2 Answers
Gizmos.DrawLine is dissapearing after returning to editor after Playing the scene 0 Answers
DestroyImmediate(component.gameObject) destroys component but not gameObject 1 Answer
How to access Custom Inspector own gameObject 1 Answer
Gizmos icons 0 Answers