Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewport_2d_in_3d mouse_entered and mouse_exited events not working reliably #623

Open
Alessioforlante opened this issue Mar 11, 2024 · 0 comments

Comments

@Alessioforlante
Copy link

I'm trying to create a button highlight effect using TextureButtons. I do this by changing the object's texture via code on events "mouse_entered()" and "mouse_exited()".
When testing in 2D mode the button behaves as expected. In VR, however, it doesn't seem to work correctly: It looks like I need to "click" on the 2d_in_3d viewport (not the button itself!) to have it function If I click outside of the viewport, it doesn't work anymore. Also, when it does work, it works for a couple of seconds. after that, it stops working unless I click again.

I'm led to believe this is due to some optimization, where certain things are only checked within a period after a click - but this breaks that particular event.

I can't seem to find an option in the Viewport2Din3D object to change this behaviour. Please let me know if there is a way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant