int64 UProperty with ExposeOnSpawn meta tag won't compile from a C++ UUserWidget class.
1. Create a new C++ Project in UE 4.24.3
2. Create a new C++ Class based on UUserWidget.
3. Within the header file declare the following
UCLASS() class BUGSUBTEST_API UMyUserWidget : public UUserWidget { GENERATED_BODY() protected: UPROPERTY(BlueprintReadOnly, meta = (ExposeOnSpawn = true)) int64 userId; };
4. Compile
Result: Error: ExposeOnSpawn - Property cannot be exposed
Expected: Successful Compile
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-91150 in the post.
0 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.24, 4.25 |
Target Fix | 4.25 |
Created | Mar 25, 2020 |
---|---|
Resolved | Mar 26, 2020 |
Updated | Aug 20, 2020 |