+1 vote

Is it possible to Hide and Capture the mouse at the same time.

in Engine by (271 points)

1 Answer

0 votes
by (7,900 points)

I do not understand how to use Numeric Constants to hide the mouse.
Could you please Provide a hint?
found a hint...
https://godotengine.org/qa/1155/way-to-change-what-cursor-looks-like-in-game-via-gdscript?show=18636#c18636

The common syntax is:

set_property(Class.PROPERTY_CONSTANT)

Like:

set_mouse_mode(Input.MOUSE_MODE_HIDDEN)

Is the same if you use the value but the names are there so you don't have to care about the value (if for "reasons" that changes internally in the engine).

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 Frequently asked questions and 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 [email protected] with your username.