I want to display unit hp bar when only it takes up certain amount of screen space, wondering are there any functions i can make use of ?
Cannot simply compare the distance from camera, lets say i have many types of units, some of them are much bigger than the other, and i want the hp bar to have a minimum size, so i only want the hp bar to be visible when the unit takes up more than 1% of the screen space or something like that. Anyway to do that ?
By the way that document entry is literally the first result on Google for “Unity bounds”. Many of the simpler solutions we present to people are literally just us Googling and choosing one of the results on the first page.