Description

When a bool variable is defined in code, changing the default value of the variable does not update on a hot reload

This is inconsistent with other variables types that update their current value when the default is changed in code.

Steps to Reproduce

1. Open UE4 Editor (any project)
2. Add code to project based on actor
3. Add the following to the header file:

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
bool DefaultValueCheck;

4. Add the following to the constructor

DefaultValueCheck = true;

5. Compile
6. Create a blueprint based on MyActor
7. In the Event Graph click the eyeball to show inherited variables
8. Check that the default for DefaultValueCheck is true
9 In VS change the default of the variable from true to false
10. Hot reload the code

Result:
BP Variable will indicate that it is not set to its default value but it does not update the value to the new default. Repeat the steps with a float variable to see inconsistencies.

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.7.4
Target Fix4.8
Fix Commit2519899
CreatedApr 6, 2015
ResolvedMay 11, 2015
UpdatedApr 27, 2018
View Jira Issue