0 votes

I have a raycast in 3D space that works by mouse clicks. I also have control buttons. The problem is that when I click a control button, the raycast also happens. The raycast is calculated first for whatever reason.

I'd like the buttons to prevent the raycast. I figure if I can determine if a button is being hovered over or clicked, I can stop the raycast. (I know how to check individual buttons, but I mean ALL buttons, without having to copy paste)

in Engine by (23 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.