When would you use the UI Button over regular Game Object?

With all the mouse interaction hooks already provided by any game objects, I was able to use them as buttons as well with no problem. Almost like using

in HTML to do everything.

When would you use UI Button over just bare bone Game Objects?

I use them in the UI when they’re going to act like… buttons :slight_smile:

1 Like

Yeah but any game object can easily be a button too.

Yep, no argument there. :slight_smile:

This :roll_eyes:

Yes, gameobject can be button too but UI-button is ready to use and has much useful functions.

Can you give me an example of a “useful” function that a button has that a regular game object doesn’t?

Regular gameobject is empty :eyes: Button is the gameobject that can be allready used as button.
-is animated (+ can be used as bar)
-platform independed
-easy to use with different aspect ratio
-can be controlled with a gamepad

1 Like