How to let changes on inspector effective immediately like changing the SpriteFrames of an AnimatedSprite2D?

Godot Version

godot4.2

Question

The thing is, I am going to create a scene called Swordman. The swordman scene have a child node in type of AnimatedSprite2D to play various animation. There are two human camp in my game, one is red camp, and another is blue camp. So I prepared two SpriteFrames for the AnimatedSprite2D node, corresponding to red and blue camps respectively. When building the main scene, how can I change the SpriteFrames of instantiated swordman scene, and how to let the changes effective immediately in the editor like editing the subscene? :thinking:

Do you mean @tool scripts?