Create control to select image from dropdown?

I’m creating a panel and would like to add a drop down menu to it that would allow the user to select one of the images that is in the project (kind of like the image dropdown that is at the top of the UV editor window). Is there a way to do this? The StringProperty doesn’t seem to allow you to give the user a limited list of options to choose from.

You want an EnumProperty:

1 Like