Hi peeps!
today i made stupid mistake because i dunno !!!
I learnt that unity has introduced new game object called Canvas, in this Canvas we can put on top of it UI elements.
So today. my mission was to create a layout with button and its own customized image.
1. In hierarchy window, create new canvas object.
today i made stupid mistake because i dunno !!!
I learnt that unity has introduced new game object called Canvas, in this Canvas we can put on top of it UI elements.
So today. my mission was to create a layout with button and its own customized image.
1. In hierarchy window, create new canvas object.
2. Select on Canvas node, right click and chose to create button.
3. Drag/import an image to Assets folder.
4.Open the image inspector, change the image import setting, texture type to "Sprite(2D and UI)". Apply the import setting changes.
5. Click on the button, navigate to button inspector, change the source image to the image that you have just added earlier. *Its required to do import setting changes first before able to see the image populated in source image list.
6. Yes now you able to see that the button has its own customized image. well done!
Comments
Post a Comment