Ease of Building UI Elements in Unity

Now everything will stay relative to its position no matter the screen size
using UnityEngine.UI;
This allows us to use Get Component only once
Set the type of information this method receives.
The number in the Parenthesis represent the amount of points and can be set to random
Using this method to cuts down on the expensive Get Component command
This help ease bug catching later
Setting the local variable to an int so it only works with whole numbers.
The points from the enemy are converted on the player and sent to the UI Manager.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build a Social Media Website with Django — Users App (Part 2)

Social Media App

Industry use cases of Openshift

What is better? Modular Monolith vs Microservices

Choosing Right Technology Stack for Mobile App Development

Building an Android App for multiple environments

What are bits, bytes, kilobyte, megabyte, gigabyte, terabyte And petabyte, why should a software…

Data preference changes in Firefox 58

Running R scripts in Airflow using Airflow BashOperators

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
addam davis

addam davis

More from Medium

Adding a Main Menu to our UI

Tessellation in HDRP

Creating A Modular Powerup System in Unity

Building UI elements in Unity