Trying to use a USTRUCT. It seems fine for variables, except when I try to use a FString, FName or Char. Does anyone know if I’m just missing something?
It doesn’t cause a crash, it just gives the error saying it expects a “;”, other variables are working properly.
USTRUCT()
struct FBodyInformation
{
GENERATED_USTRUCT_BODY()
UPROPERTY()
FName limbName; //Says it is expecting ";" here when using FName or FString
UPROPERTY()
uint32 limbHealth;
UPROPERTY()
uint32 attackType;
};
Hey, thanks for the suggestion. Just got back into the office today to try it but it turns out when adding a Struct I can’t just Compile from within the editor, I have to close the editor and re-compile through Visual Studio.