Description

If a variable's value is being set in the construction script of a class and then that value is edited (the line itself is edited, not another setting of the variable), hot reload will not update this change correctly.

Steps to Reproduce

1. Create C++ FirstPersonShooter template project and ensure that the project is open in the editor (As this is a hot reload issue, the editor cannot be closed at any point to reproduce this issue)
2. Open VS 2015 if it is not open
3. In the source file ProjectNameProjectile.cpp modify "InitialLifeSpan = 3.0f;" to a "InitialLifeSpan = 10.0f;" on line #31
4. Comment or delete the "Destroy();" from next function, line #41.
5. Ctrl+Shift+B to build or compile from inside of the editor
6. Start PIE and shoot once.
7. Follow the pellet and notice how long it takes to disappear
Result: The pellet only takes 3 seconds to disappear.
Expected: As we changed the time in code, it should take 10 seconds to disappear.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

3
Login to Vote

Won't Fix
CreatedFeb 1, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021
Pull Requests
5830 - Algorithman
View Jira Issue