Why isn't the draw name removing from viewport?

When I input the name and press enter the screen doesn’t disappear but adds the same screen again to input name again.

Your DrawScore and DrawName events create the same widget, right?

  • first, you remove the one created in Draw Name
  • and then you call Draw Score, creating the same widget again

I think it is being removed, you just can’t see it as it’s immediately replaced with another instance of the same widget. Perhaps you did not select the correct widget for the Draw Score.