If a custom code based enum is used inside a blueprint, doing a hot reload will break the nodes by assuming they are of a type other than enum.
1. Open UE4Editor (any project)
2. Add code to project based on Actor (MyActor)
3a. In MyActor.h add the following above the UCLASS() macro:
UENUM(BlueprintType) enum class ETestEnum : uint8 { EnumInt, EnumFloat, EnumString, EnumBasic };
3b. Add UPROPRETY() variable for enum in MyActor.h
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) ETestEnum MyValue;
4. Compile
5. Create Blueprint based on MyActor (MyActorBP)
6. In the event graph, Click the eye in the MyBlueprint panel and set show inherited variables
7. Add Key Press Event (T) and wire into Set node for Enum. Wire Enum into print string node.
8. In the code, add a new UPROPERTY() variables (float) and compile to trigger a hot reload
Result:
Enum Set node and conversion node to print string have errors after the hot reload
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?
How can i modify the param name in EQS node
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
How to achieve HLSL Multiple Render Target in Material blueprints?
What method is used to fill polygonal regions when drawing spline mesh at run time?
Head over to the existing Questions & Answers thread and let us know what's up.
1 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.8.3, 4.9 |
Created | Aug 3, 2015 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |