I am displaying an image within my panel which when clicked I would like it to increase in size. When the image is clicked again I would like it to revert back to its original size?
Can anyone offer any assistance?
Thanks
I am displaying an image within my panel which when clicked I would like it to increase in size. When the image is clicked again I would like it to revert back to its original size?
Can anyone offer any assistance?
Thanks
Depending on whether you want to lerp the size change. You need to create a script and attach it to the “clickable Object” using the IPointerClick interfaces, then in the implemented methods, you have two options.
Either:
The SelectableExtension and the NonDrawingClickable controls in the Unity UI Extensions (link in signature) project provide the click behaviours so you can use or copy them to suit your needs.
Hope that helps.