I am trying to create pop up information for an object. Like when the player wakes towards the object, and when it is near the object then show the button. And when the player clicks the button, it opens the pop information.
I had implemented it, but the problem is the click me button is shown even when the player is very far. I want it to be shown only when the player comes with in some distance of the object.
Below is link to my project.
https://playcanvas.com/editor/scene/1859032