Raycast UI Elements
Hello Everybody,
I have a game were the Player should be able to shoot in UIButtons and if he hits them, they should explode. However I cannot find a way to Raycast these Buttons, since all of the GraphicRaycasting I have found so far, uses the inout from the Mouse or Stuff like that. But I really would like to find those Buttons by a ray.
I there any Way?
Thanks in Ahead!
Comment
Your answer
Follow this Question
Related Questions
Animating UI Elements And more Questions 1 Answer
UI not working properly in webgl build (new input system) 0 Answers
Adding points for every gameObject on the scene instead of adding points for the destroyed one 0 Answers
Laser pointer style UI interaction in VR 2 Answers
Get Name of UI gameobject with raycast 3 Answers