A static array based on an enum does not display the enum names in Blueprints if the size of the static array uses an explicit C-style cast with a space between the type being cast to and the enum being used (eg: int32 MyArray[(uint8) ETestEnum::MAX];). If there is no space, then the enum names are displayed in Blueprints as expected.
The explicit cast is required in this case when developing for PS4, which will not allow the implicit cast that would be used otherwise. However, the results of this repro can be seen on Windows.
UENUM(BlueprintType) enum class ETestEnum : uint8 { Foo, Bar, Random, Test, Working, MAX, };
UPROPERTY(EditAnywhere) int32 MyArray[(uint8) ETestEnum::MAX];
RESULT:
In the Details panel, the array elements are shown with the enum numbers instead of the enum names.
EXPECTED:
The Details panel shows the array elements with their respective enum names.
WORKAROUND:
Make sure there is no space between the type being cast to and the enum being used with the array (eg. int32 MyArray[(uint8)ETestEnum::MAX];).
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How does UMG set overlapping layouts?
How to properly terminate the DoWork thread function in FAsyncTask?
How to achieve HLSL Multiple Render Target in Material blueprints?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-67858 in the post.
1 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.19.2, 4.22, 4.20.3 |
Created | Dec 21, 2018 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |