Struct array variables interpret multiple Structs as the same if they have the same values. This does not occur if the values in the Structs added to the array are different.
Test project in 4.8.1 attached.
Reproduced in 4.7.6, 4.8.1, and Main (//depot/UE4/Promotable-CL-2610743)
1. Open a new project
2. Create a new Struct, StructBP
3. Create a new Actor Blueprint
4. Add a new StructBP variable, Struct0
5. Add a second new Struct variable, Struct1
6. Make StructBP > Set Struct0 (leave the default bool value as False)
7. Make StructBP > Set Struct1 (leave the default bool value as False)
8. Add a new StructBP Array variable, StructArray1
9. Get StructArray1 > Add Unique > Struct0
10. Get StructArray1 > Add Unique > Struct1
11. Get StructArray1 > Length > Print String
12. Attach all to Event Begin Play
13. Drop the Actor BP in the level
14. PIE
Result:
Print String: "1". Looks like only one of the two Struct variables are added to the Struct Array variable because they both have the same values. This does not occur if the values in the Make Struct node are different.
Expected:
Print String: "2"
error message when install in U.E 5.3 - IS-IN-FCO2-82
I am not able to find world outliner how to enable it?
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.6, 4.8.1, 4.9, 4.14 |
Created | Jul 7, 2015 |
---|---|
Resolved | Jul 7, 2017 |
Updated | Jul 10, 2017 |