- 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
![](https://koobas.hobune.stream/wayback/20220613201036im_/https://answers.unity.com/themes/thub/images/avi.jpg)