Open timothyqiu opened 1 year ago
This is a known bug.
You have to do something like:
var animation_player := $AnimationPlayer
instead of
var animation_player: AnimationPlayer = $AnimationPlayer
for the animation names to show in auto-complete. Not sure why this happens though... hope it gets fixed!
Still happening in Godot 4.3
Godot version
4.1.1.stable, master[7ba79d68bd0f97797d7cb37452da6a036ba7c7c9]
System information
Arch Linux
Issue description
When an AnimationPlayer onready variable is created in the base script, autocomplete in a derived script won't show animations added in the derived scene.
See "steps to reproduce" for detail.
Steps to reproduce
animation_player
for the AnimationPlayer nodeanimation_player.play(
If the onready variable is defined in the extended script instead of in the base script, then everything works fine.
Minimal reproduction project
test-4.zip