Description

Duplicated anim layer interfaces cannot be added to the same anim BP. While UEdGraph::GraphGuid is unique within a bluprint, it is not unique within the project as a whole (see [Link Removed] for more info). However, UAnimationGraphSchema::ConformAnimLayersByGuid() assumes that the GUIDs are unique between blueprints and changes the Layer value on the LinkedAnimLayer during compilation which causes this issue.

Steps to Reproduce
  1. Create a AnimationLayerInterface asset
  2. Duplicate the asset
  3. Change the name of the layer within the duplicate asset
  4. Create a Anim BP
  5. Add both layer interfaces to the Anim BP via the Class Settings
  6. Within the Anim Graph, add two LinkedAnimLayer nodes
  7. Set the Layer property on the first node to target the first layer, and the second to target the second layer
  8. Compile the blueprint
  9. Compilation will fail with a number of errors in the log. Note that the Layer property on both of the LinkedAnimLayer nodes now has the same value. Expected behaviour is that the anim BP should compile.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-109616 in the post.

2
Login to Vote

Won't Do
CreatedMar 1, 2021
ResolvedApr 3, 2024
UpdatedApr 8, 2024