You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the master branch the Viewport2Din3D connect_scene_signal function is written as follows:
# Connect a 2D scene signalfuncconnect_scene_signal(which, on, callback):
ifscene_node:
scene_node.connect(which, on, callback)
This matches the Godot 3 signature for connect: Error connect ( String signal, Object target, String method, Array binds=[ ], int flags=0 )
However it should be modified to match the Godot 4 signature for connect: Error connect ( StringName signal, Callable callable, int flags=0 )
As such the connect_scene_signal function should be modified to something like:
# Connect a 2D scene signalfuncconnect_scene_signal(which : String, callback : Callable, flags : int=0):
ifscene_node:
scene_node.connect(which, callback, flags)
The text was updated successfully, but these errors were encountered:
In the master branch the Viewport2Din3D connect_scene_signal function is written as follows:
This matches the Godot 3 signature for connect:
Error connect ( String signal, Object target, String method, Array binds=[ ], int flags=0 )
However it should be modified to match the Godot 4 signature for connect:
Error connect ( StringName signal, Callable callable, int flags=0 )
As such the connect_scene_signal function should be modified to something like:
The text was updated successfully, but these errors were encountered: