-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Mono Unable to Find Input
Class
#37690
Comments
Is this due to the Input -> InputFilter singleton rename? |
If I use InputFilter it says |
Other singletons ( godot/core/register_core_types.cpp Line 267 in c9de04b
Input in GDScript would work.
I'm working on a fix, lets see how it goes |
It changed name as part of the DisplayServer and input refactoring in godotengine#37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes godotengine#37319. Fixes godotengine#37690.
Godot version:
d89dc57
OS/device including version:
Linux Mint 19.3
Issue description:
Error
Input
class not foundFor example:
It works in GDScript
Steps to reproduce:
Create a C# script then use the Input class. Like
SetMouseMode
.The text was updated successfully, but these errors were encountered: