- Home /
Question by
Yagef · Jun 16, 2015 at 02:48 PM ·
custom editoricongizmo
Separate icons for gizmo and script
I set gizmo icon for my component with this piece of code:
OnDrawGizmos()
{
Gizmos.DrawIcon(transform.position, "Component icon", true);
}
Also I set icon for me script in inspector. And now I have a problem: script icon overlaps gizmo icon in scene view. How to use separate icons like in built-in components?
Comment
Your answer