Description

int64 UProperty with ExposeOnSpawn meta tag won't compile from a C++ UUserWidget class.

Steps to Reproduce

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

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-91150 in the post.

0
Login to Vote

Fixed
ComponentCore - UnrealHeaderTool
Affects Versions4.244.25
Target Fix4.25
Fix Commit12451364
Release Commit12451364
CreatedMar 25, 2020
ResolvedMar 26, 2020
UpdatedMar 30, 2020