0 votes

Whether I connect them via the editor or in code, they don't connect, and there is no error. I am not sure how this code is different from the Button nodes I use that work fine.

extends ScrollContainer

onready var scene = get_tree().get_current_scene()

func _ready():
    #connect_signals() #this does not work either

#func connect_signals():
#   connect("scroll_started", self, "_on_Scroll_scroll_started")
#   connect("scroll_ended", self, "_on_Scroll_scroll_ended")

func _on_Scroll_scroll_started(): #never connected or called

func _on_Scroll_scroll_ended(): #never connected or called
Godot version 3.4.2
in Engine by (57 points)

2 Answers

0 votes
Best answer

Seems like a known issue (bug):


Maybe you can use get_<v or h>_scrollbar.connect("scrolling", self, ... as a workaround. Depends on what you want to do of course.

by (1,517 points)
selected by
0 votes

Remove the # from Infront the functions also remove pass from beneath func _ready():. If "pass" is there the computer won't read what's beneath "pass".

by (445 points)

I have tried without the comments. Signals can be connected in the editor without calling connect() in code. But either way, isconnected("scrollstarted", self, "onScrollscrollstarted") returns false.

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.