How to copy/paste or load a stateMachine node in the AnimationTree ?

Hello,

I’m working on the animations for my 3D game in Godot v4.6.1. I use an AnimationTree to organize my animations, and I just tried to copy/paste a complex StateMachine node from one BlendSpace2D to another. I did this by left-clicking on the resource tab of the existing StateMachine node and right-clicking on the Copy button. Then, I added a new StateMachine node where I needed it and tried to use the Paste button, but nothing happened. The same issue occurred when I tried to save the StateMachine node resource as a .tres file and load it into a new StateMachine node.

I really need to know how to copy/paste or load a StateMachine node. Otherwise, I risk losing all the time I spent building my StateMachine if I want to move it or if a software bug occurs (which has already happened to me!).

Thank you in advance for your answers.

All AnimatioNode are Resources so you can save them to disk by selecting them in the editor and using the disk icon in the top-left corner of the inspector.

All the animation tree editors (state machine, blend tree, blend space,…) give you the option to load those resources by right-clicking and choosing Load...

1 Like

Hello,

It work, thank you so much !