Duplicating State Tree assets

When duplicating a State Tree asset, the resulting asset has errors.

After the duplication it seems correct, but when I compile the State Tree, I get errors on property bindings of the form “Task ‘MyTask’: Failed to find binding source property ‘Event.Tag’ for target Task ‘Path/To/Task’ Task Name”.

I’m working with our designers on the best ways to reuse State Tree data (via Linked State Trees), but it is a problem if they can’t duplicate State Tree assets without a lot of manual fixup.

Is this a bug? Or is there a better way to copy State Tree assets?

[Attachment Removed]

Steps to Reproduce[Attachment Removed]

This would be a bug as you should be able to duplicate a StateTree asset. I know there were some bug fixes and refactors for property bindings and copy/paste of nodes in StateTree, but we may have missed this one as we were working on 5.7. Does the bound property need to point to the tree parameters or another task’s output? Does this happen for all StateTrees that were duplicated or only certain ones in your project?

-James

[Attachment Removed]

Hey Jeff,

Thank you for the extra info and for pointing out that the themes/colors are not working properly as well. We have been addressing various copy/paste/duplicate issues, and this happens to be one of them we missed in our latest pass. I can confirm this happens in 5.7 and in Main as well. I have created a bug report for these. Here is a link to it on our public issue tracker: https://issues.unrealengine.com/issue/UE-357970. It can take a couple days for approvals and mirroring to our public site, but it will update and stay in sync once it is live.

-James

[Attachment Removed]

We’ve narrowed it down a bit: it happens for properties that were bound to members of a Required Event to Enter Payload Struct.

If the user re-specifies the Payload Struct value, and rebinds the properties, that seems to fix the issue.

It happens for every State Tree we try copying in our project, but we only have the one project.

Edit: One more minor thing: the duplicated asset’s state colors (under Theme) are all reset to default.

[Attachment Removed]