Quantcast
Channel: Questions in topic: "icon"
Viewing all articles
Browse latest Browse all 271

Separate icons for gizmo and script

$
0
0
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?

Viewing all articles
Browse latest Browse all 271

Trending Articles