when defining a function called "set_zoom" on a Camera2D the following errors appear:
_res://aaaa.gd:4 - Parse Error: The function signature doesn't match the parent. Parent signature is "set_zoom(Vector2) -> void".
res://aaaa.gd:4 - Parse Error: The method "setzoom()" overrides a method from native class "Camera2D". This won't be called by the engine and may not work as expected. (Warning treated as error.)
despite class Camera2D having no such function. This function existed on Camera2D only on Godot 2.1. This doesn't happen on Camera3D.
Tested versions
System information
Windows 11
Issue description
when defining a function called "set_zoom" on a Camera2D the following errors appear:
_res://aaaa.gd:4 - Parse Error: The function signature doesn't match the parent. Parent signature is "set_zoom(Vector2) -> void". res://aaaa.gd:4 - Parse Error: The method "setzoom()" overrides a method from native class "Camera2D". This won't be called by the engine and may not work as expected. (Warning treated as error.)
despite class Camera2D having no such function. This function existed on Camera2D only on Godot 2.1. This doesn't happen on Camera3D.
Steps to reproduce
Add a script to a Camera2d with this code:
Minimal reproduction project (MRP)
N/A