The idea is simple, I want the animation player to play random animation. The animation name prints out ok, but the animation is not playing. Any thing wrong in my code below? Thank you.
func play_random_animation():
var list = [“Name01", “Name02"]
list.shuffle()
var animationName = list[0]
$animationPlayer.play(animationName)