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?
↧