G General

HUD Buttons Script Version 1

HUD Buttons Script
Details
Features
Contents
Reviews

This is a script that shows you how to determine which area of a HUD is clicked. It is perfect for making clickable HUDs with different HUD areas. The script interprets your HUD as a grid (with the number of rows and columns specified by you). You can then easily take different actions depending on which area of the hud was clicked.

Basically, you call it from any touch event and it returns a number from a grid of your HUD as shown in the alt picture above.

Your HUD grid can be any number of rows and/or columns you like.