Basically what the title says.
i currently want to use a widget interaction with a ray to snap onto a button in a world space widget when it is near one.
i can already interact with the buttons, but they are wuite small and are hard to press. just making them larger doesn’t work in my case because the widget itself is already quite big and i don’t want the whole view dominated by the widget.
i thought of putting the buttons in a list and iterate over them to get their world location and the get the nearest distance to my widgetinteraction hit result → problem is i dont know how to snap the ray then to the found button or even how to actually get the world location of the buttons. i can get the widget slot position and scale them via the widget origin to get their relative position and therefore get their world location…
More generally: how can i interact with world space widgets easier if the buttons are quite small. it is a pain to click on them currently..
does anyone have any idea?
thanks in advance (: