UFUNCTION specifier Within=OuterClassName causes compile failure

LonelySnake
Fri, 14 Jun 2019 10:56:32 +0000
C++

I currenctly working on a something like uc state for my Character class.

UCLASS(DefaultToInstanced, EditInlineNew, CustomConstructor, Within=AGameCharacterBase)
class GAME_API UPawnStateBase: public UStateBase
{
//some code
}

Just like the UUTWeaponState in the UT project

But when I build the project there’s always an error:

Within class 'AGameCharacterBase' not found

I tried forward declaration, inculding more related headers, but the error remains still.

What do I miss?

3 posts - 1 participant