I’m trying to make a shooter game, by using Physics.OverlapCapsule() I find all pick up objects around the player. but I dont know how to make an UI selection box to click on every item to pick it up. because I’m using Physics.OverlapCapsule() in Update function if I active UI elements in this function it make many UI objects
and if destroy UI elements in start every frame I cant use click event. appreciate that to help me if there is any way to solve this problem.
Are you storing all the pick up objects in an array? That way you could add a World Space UI icon to all of the pick up objects that isn’t enabled by default, and when you’re in range, you could enable it.