Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | MikeMikeMike |
Hi…,
I export my animation list by typing the animation names in the export keyword, like this:
export( String, "move x", "move up", "slope" ) var animation_name = "move x"
func _ready():
$AnimationPlayer.play( animation_name )
When I add animations, I have to edit the export in GDscript.
Can I get this list from the $AnimationPlayer, and tell it to the export keyword automatically?
Thanks
Mike