8

I'm a Unity nob, so please don't flame me for this question.

I'm trying to change a simple UI button to look like a Play button (via simple Play PNG image), I see that the Button have a Source Image under the Image script, but as far as I can see I must select a Sprite.

How can I create a Sprite from a PNG Image?

1 Answer 1

13

Unity's sprite is a kind of Texture.

  1. Import your PNG by drag your file to the Project panel, Unity will automatically generate texture for you.

  2. Click on that file, The Inspector panel will show texture's Import setting. enter image description here

  3. In Inspector, Choose texture type as Sprite (2D and UI), Hit Apply at the bottom. enter image description here

  4. In Project Panel, Drag this texture to your Source Image under Image Script

1
  • Thanks bro! So simple if you know that to do
    – David
    Mar 12, 2017 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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