my class is just so simple:
UCLASS()
class MYPROJECT_API AMyPlayerController : public APlayerController
{
GENERATED_BODY()
UFUNCTION(Server, Unreliable, WithValidation, NetMulticast)
void MulticastCameraData(APawn* Pawn);
void MulticastCameraData_Implementation(APawn* Pawn);
bool MulticastCameraData_Validate(APawn* Pawn);
};
but, it comes out the error when i try to compile:
Function parameter: ‘Pawn’ cannot be defined in ‘MulticastCameraData’ as it is already defined in scope ‘Controller’ (shadowing is not allowed)
I cann’t understand! Please Help!!