# Forward declaration issue with UPROPERTY

**URL:** <https://forums.unrealengine.com/t/forward-declaration-issue-with-uproperty/401097>\
**Category:** Editor Scripting\
**Tags:** UProperty, ustruct, UClass, unreal-engine, CPP, question\
**Created:** [August 3, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/forward-declaration-issue-with-uproperty/401097 "2017-08-03T15:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YZMAAMZY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YZMAAMZY](https://forums.unrealengine.com/u/YZMAAMZY)\
**Post date:** [August 3, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/forward-declaration-issue-with-uproperty/401097/1 "2017-08-03T15:28:55Z")

</div>

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
