2
\$\begingroup\$

I know this question sounds banal but its a problem.

I received a project and opened it.

Now I try to edit it by adding my own images.

I do the import but the image does not show up when selecting images, for example, for a button:

https://www.dropbox.com/s/mzx34g51a1a3whm/unity.jpg?dl=0

What is the correct folder in this case?

\$\endgroup\$
4
\$\begingroup\$

Your png is most likely not set to be imported as a sprite, and the property you want to use it in requires a sprite (background, checkmark and the others are by default sprites).

Click on your png to open up the import settings. The Texture Type dropdown menu is the interesting part here. Set it to Sprite, apply the changes and your sprite-ified png should now appear as selectable for your UI elements.

While at it, read about how it is possible to use raw textures for UI work (not sprites), and how this affects performance and should only be used in certain situations. Start here: http://docs.unity3d.com/460/Documentation/ScriptReference/UI.RawImage.html

\$\endgroup\$
  • 1
    \$\begingroup\$ that worked! many thanks! :-) The more precise I describe, the better the answers. \$\endgroup\$ – mirzahat Jan 22 '15 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.