Local variables nodes buggy when copy+pasting


When pasting Set Local Variable nodes, and using right click + create variable on them, they need to be deleted and dropped in again or else there is a compile error.

It would also be really nice if pasted local variable nodes did not all have to be replaced one by one after you create them from the pasted variables name - if all greyed out variables with a certain name became valid once a variable with that name is created.

Hi Timmeh_ZA,

Does this occur in a clean, blank project with no additional content or is it limited to one project in particular? Was the local variable within a function of a blueprint? What type of blueprint if so? Was it in a function library? How many were you attempting to copy/paste at the same time?

I have been able to reproduce this in a blank empty project.

Here are the steps:

  1. create blank project

  2. create 2 Actor blueprints (Ill refer to them as Actor1 and Actor2)

  3. Edit Actor1 :

3a. add function

3b. add local variable to function (a bool will do)

3c. place SetLocalVariable node in function.

3d. copy placed SetLocalVariable node.

  1. Edit Actor2

4a. add function

4b. paste set variable node (copied from Actor1)

4c. connect pasted node to execution path

4e. right click pasted node, and select create local variable (from name)

4f. attempt to compile blueprint

When I do this I see this result:

The Blueprint will not compile, until the node has been disconnected/deleted/replaced.

Hi Timmeh_ZA,

I was able to reproduce this on my end and have entered a bug report, UE-21628, to be assessed by the development staff. As a workaround, create the local variable of the same name in the second blueprint before copying/pasting, instead of promoting the set node input pin to a local variable.