Understanding Question - Replication

Hello,

i dont understand how remoteViewPitch (from APawn) gets replicated.

Its is replicated, so this means when the server set this variable, all clients notice it.

But how does the player client “tell” the server to set this variable? When i look around with my character, my playerController knows about it but not the server. How is he able to set this variable? I thought, there would be some RPC in the engine code for this remoteViewPitch but it isnt. The Screenshot above is point, where the variable gets set.

Can someone explain me how the server gets the info of the remoteViewPitch of the client?

thanks a lot.

I found the answer.
UCharacterMovementComponent::ServerMove_PerformMovement is responsible for sending the view data. Its a bit more complex but in the end, its just an rpc that gets send to the server to update the data.


(header declaration)


(extra explanation in the header file of UCharacterMovementComponent)