- Home /
change UI button image ..
how to change the button image in the new UI system ? I made a button but I don't want it to be a white button I want a custom image on it ? how to do that ? I'm waiting your help .. Thank You :)
Answer by DoTA_KAMIKADzE · May 01, 2015 at 09:34 PM
Step 0) Set your Texture to type of Sprite.
Step 1) Add Image component to your button if it doesn't exist already.
Step 2) Add Sprite from step 0 to SourceImage of Image component.
Step 3) Make sure your Image component is set to your TargetGraphic of your Button component.
I couldn't change it .. I want to add a texture .. how to do that ?!!
Ok I've updated my answer with all steps from your imported texture up to the end, check it out.
Answer by MasterPow · Jul 07, 2017 at 07:44 PM
make a button. change source image to none. add material you want to use. scroll down, change shader to UI/default change size as nessesary
Answer by nati1234567890 · Aug 09, 2018 at 01:24 PM
Add it to your project (by dragging it in) and change the "Texture Type" of your picture to Sprite(2D and UI). then you can drag it to the "Source Image" of the button.
Your answer
Follow this Question
Related Questions
Button on Panel is not responding 1 Answer
RPG Maker style menu with UI buttons that are selected by controller 0 Answers
UI Button Event Trigger Update Selected not working 0 Answers
UI Button Set Image 1 Answer
UI Button ON/Off 3 Answers