x


Custom Gizmo.DrawIcon Images

I'm making waypoints (empty gameobjects / transforms), and I want them to be selectable (and visible) in the editor so I'm using Gizmo.DrawIcon on the objects.

I would like to use custom images for the icons, but I can't find out how to do that.

Where are the Gizmo Icons located? How can I import/use my own? Are there restrictions on the file type/size?

Note: Running Windows. The Gizmo.DrawIcon function requires a string for the location of the icon, leading me to believe they're all hiding in a folder somewhere that I need to add mine too.

Any help would be wonderful!

more ▼

asked Nov 05 '10 at 05:27 AM

Carl Johnson gravatar image

Carl Johnson
3 1 1 4

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It's worded a little strangely, but the docs specify that icon images can be placed in Assets/Gizmos. So, simply create a folder called 'Gizmos', and import the images there. (I can't remember what image formats are supported, but I'm pretty sure I've used PNGs with no problem.)

more ▼

answered Nov 05 '10 at 11:21 PM

Jesse Anders gravatar image

Jesse Anders
7.3k 7 17 48

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x199
x69
x62

asked: Nov 05 '10 at 05:27 AM

Seen: 2315 times

Last Updated: Nov 05 '10 at 05:27 AM