Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | disablak |
child class
class_name UnitsManager
extends Node2D
...
func new_test_method(): # added new method
return
parent class
class_name MyWorld
extends Node2D
...
@onready var units_manager: UnitsManager = $UnitsManager as UnitsManager
...
units_manager.new_test_method() # here autocomplete doesn't work
It only starts working after restarting Godot. If I try to call it in the same class, autocomplete works. This issue doesn’t occur with a new project. Could the reason be due to my large scripts? (400~ lines)