Two local variables with the same name in two different functions still interact with each other in some way. This was reported in TTP 346132 and fixed in that case, but currently if a local variable is in use in one function, a local variable with the same name in a different function cannot change its type, which would normally indicate that it is in use.
1. Launch: UE4Editor.exe (any project)
2. Open a Blueprint
3. Create a new Function (FunctionOne)
4. Create a Local Variable named TestVar
5. Add a Get TestVar to the FunctionOne graph
6. Create a new Function (FunctionTwo)
7. Create a Local Variable named TestVar
Results:
The variable type of the new Local Variable in the second function cannot be changed while the Local Variable with the same name is in use in the first function
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.5.1, 4.7 |
Created | Nov 6, 2014 |
---|---|
Resolved | Dec 9, 2014 |
Updated | Apr 27, 2018 |