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 to Questions & Answers just mention UE-91150 in the post.

0
Login to Vote

Fixed
Fix Commit12451364
Main Commit14151001
Release Commit12451364
CreatedMar 25, 2020
ResolvedMar 26, 2020
UpdatedAug 20, 2020
View Jira Issue