Description

This is actually a bug with function duplication via UEdGraphSchema_K2::DuplicateGraph.

After a function graph is duplicated, the function entry node still retains the same GUIDs for its local variables. In this case, the user renamed one of the local variables to "MakeAMathExpressionWithMe". However, when the math expression node when to search for the local variable in the display name, it found the original variable name in the source function that the current one was duplicated from.

The fix here would be to explicitly create new GUIDs for the local variables after duplication.

Steps to Reproduce
  1. Download and extract attached project.
  2. Open the project in the editor.
  3. Open MyFuncLib.
  4. In the ThisOne function, change the expression of the sole Math Expression node to "MakeAMathExpressionWithMe".
  5. Expected behavior: the node is renamed to "MakeAMathExpressionWithMe".
  6. Current behavior: the node is renamed to "CurrentLoop_DistanceAlongSpline_Start"

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions5.2
Target Fix5.5
Fix Commit33611589
CreatedJun 15, 2023
ResolvedOct 1, 2024
UpdatedOct 1, 2024
View Jira Issue