I had a local variable in a function but I needed to move it to the class as a global variable. So I deleted the variable in the function and created a new one in the class. When I try to name it the name of the variable I just deleted, I get the error “Name is already in use.” However it’s not the case. How can I fix this?
I tried closing and reopening the editor. I also tried cleaning my solution and rebuilding the whole project. Nothing seems to be working. Every time I work with blueprints, I encounter stupid problems like this one, it’s so annoying!
I’m working with UE 4.27 if it’s relevant. Thank you for any help.
Are you sure a parent class doesn’t have a variable of that name?
In the blueprint, can you right-click and type that name in the node list to see if it exists?
Actually I just found what the problem was. There was another function containing a local variable with the same name. I removed that variable and then I was free to rename my first variable. I should have searched more carefully.