Inconsistency in parameter type in virtual method. #6679
GianptDev
started this conversation in
Engine Core
Replies: 1 comment 2 replies
-
It's defined as accepting an object, regardless of the name, might be an oversight as the signal has type set Changing it would break compatibility which I doubt will happen in 3.x |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using
godot.3.5.2.stable
I'm doing a project and using the
StaticBody2d
node with a script, I'm overriding the_input_event
and since I like type typing I've set the type of each paramenters like this:but the engine gave me the error:
Looking at
CollisionObject2D
, the class that implement the method, the parameter ofviewport
is of typeObject
instead ofViewport
, despite the parameter will always contain a viewport.Should this be considered a bug? It was intended to be like this?
Beta Was this translation helpful? Give feedback.
All reactions