UI Elements in Unity

Unity

A canvas and an event handler. The canvas holds multiple UI components and makes them responsive to screen size changes whereas the event handler is a listener object that reacts according to selections/Inputs.

Unity
Unity
  • This is where the text component is seating on canvas. I’d like to put it up in the top-right corner where it suits the most.
Unity
Unity
Unity
  • This is how the end result looks. Let us make use of canvas and make this element screen responsive so that when the game screen shrinks, the text element also shrinks its size.
Unity
Unity

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store