I think i found my mistake.
I created STypes.h by right click on SurvivalGame folder in VS solution explorer and Add Item .
This time i create a .txt file in windows explorer and change name and format to STypes.h and every things is OK and project compiled successful but there is a problem inside STypes.h there is no
#include "STypes.generated.h"
Why engine didn’t add this line ?
without that line GENERATED_USTRUCT_BODY() not working… and compiler give errors.
and another question is what is difference between these two type of pointer ? both compile fine in STypes.h
TWeakObjectPtr<class ASCharacter> PawnInstigator;
class ASCharacter* PawnInstigator;