Forward declaration issue with UPROPERTY

YZMAAMZY
Thu, 03 Aug 2017 15:28:55 +0000
Editor Scripting

USTRUCT(BlueprintType)
struct FRTSPlayer
{
GENERATED_USTRUCT_BODY()

...

    // own units
    UPROPERTY()
    FRTSUnitManager RTSUnitManager;

...

};

USTRUCT()
struct FRTSUnitManager
{
    GENERATED_USTRUCT_BODY()

...

    UPROPERTY()
    FRTSPlayer* RTSPlayer;

...

};

The code above causes me to get the error that type must be a UCLASS, USTRUCT or UENUM.
I know removing the UPROPERTY() would allow it to work but i need to be able to edit it in blueprints. Anyway to do this?
Thank you

1 post - 1 participant