0 votes

Normally, if i have an edit under a panel it will not show mouse caret... but if edit in viewport caret shows through? and i can click on an use controls that are hidden
https://github.com/rakkarage/TestViewport
Does anyone know a way around this? Maybe a bug? Please & thanks.
https://youtu.be/BP6Er-pgBfw

in Engine by (1,665 points)
edited by

Both Works.tscn and Not.tscn behave the same for me. The caret is not visible as long as it is behind the ColorRect. I did not make any changes to your project.

Thanks for looking. I mean the mouse cursor caret like this:
https://youtu.be/BP6Er-pgBfw

I see. That cursor shape is called "ibeam". The "caret" is the line at the cursor position while the TextEdit is focused. Sadly I don't know how to fix your problem. :( Somehow the Viewport-Container gets the input event all the time, even when the ColorRect is on top, while the ColorRect itself seems to never get any gui_input. Might be a bug. Either way it's beyond my understanding of viewports and input events...

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.