UPROPERTY() variable in Interface class?

Can you have a UPROPERTY() stored in the C++ interface class? For example:



// interface class

UPROPERTY(EditInstanceOnly)
 FString VeryImportantString = "";

FORCEINLINE FString GetVeryImportantString()
{ return VeryImportantString; }

FORCEINLINE void SetVeryImportantString(FString string)
{ VeryImportantString = string; }


This is as opposed to:



// interface class

virtual FString GetVeryImportantString() const = 0;
virtual void SetVeryImportantString(FString string) const = 0;


Where you then have to then re-write the variable, getter, and setter in every class that implements the interface … :frowning:

Interfaces can’t contain reflected properties.

C++ / native-only interfaces can contain non-reflected properties though.