user285372
user285372

Reputation:

Applying an image to a Unity UI Panel

Does an image have to be a specific type, so that you can simply drag it from a folder in a Unity project and drop it on top of the Source Image field of the Image component of a UI element, such as a Panel?

I try to do this with a jpg logo, in order to apply it to a Panel element, but it would not apply...

Upvotes: 5

Views: 14950

Answers (1)

Jayson Ash
Jayson Ash

Reputation: 709

Navigate to the .jpg file within the Unity Editor and select it so that the details appear in the Unity Inspector panel, then change the Texture Type to Sprite (2D and UI). This new Sprite element can now be assigned to the Source Image field of the Image component.

Upvotes: 13

Related Questions