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.
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.
UE 4.11.2 Install Failed - Prerequisites error E-1223 and R-23
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
I am not able to find world outliner how to enable it?
An error occurred while trying to generate project files !?
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.4 |
Target Fix | 4.8 |
Fix Commit | 2519899 |
---|
Created | Apr 6, 2015 |
---|---|
Resolved | May 11, 2015 |
Updated | Apr 27, 2018 |