When declaring a variable to be private, any instances of that variable being changed in child blueprints (before hand) will remain as they were before the variable was declared as private. However, the variable can no longer be accessed from the the child blueprints, making the discrepancy hard to track down in the future.
Result: The print strings will fire off as 5 and 0 (5 From the parent and 0 from the child)
Expected: The Default value of the child would be changed to match that of the parent when the variable was declared as private (because the can no longer be accessed in the child) and so the print strings would match.
Head over to the existing Questions & Answers thread and let us know what's up.
5 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.17.1 |
Created | Sep 22, 2017 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |