Structs.h
USTRUCT(BlueprintType)
struct FTestData
{
GENERATED_BODY()
UPROPERTY()
int32 code;
};
Levelscript.h
UFUNCTION(Reliable, Server, WithValidation)
void TestReplicateSrver(FTestData _data);
void TestReplicateServer_Implementation(FTestData _data);
bool TestReplicateServer_Validate(FTestData _data);
I want to do rpc communication with a custom struct.
Unrecognized type ‘FTestData’-type must be a UCLASS, USTRUCT or UENUM Error.
I don’t know what the problem is.