When the default values of a struct are set in code and an array of the struct type are added as a class variable, creating a blueprint of the class with show array elements with the "reset defaults" arrow regardless of the current/default value.
USTRUCT(BlueprintType) struct FMyTestStruct { GENERATED_USTRUCT_BODY() FMyTestStruct() { Anum = 45.234; Abool = true; } UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) float Anum; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) bool Abool; };
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) TArray<FMyTestStruct> Astruct;
Result:
Anum and Abool will show the values set in code but will have the yellow arrow indicating the default value has been changed. Clicking the yellow will change the values to 0.0 / false, respectively.
Expected:
Default values are set and editor recognizes them as the default values.
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How can i modify the param name in EQS node
How to achieve HLSL Multiple Render Target in Material blueprints?
Delay nodes occasionally don't fire the "Completed" output in a nativized build
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
Head over to the existing Questions & Answers thread and let us know what's up.
20 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.13.2, 4.14, 4.19, 4.20 |
Created | Nov 14, 2016 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |