Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Why does NetworkBehaviour EventDelegate require NetworkReader?

$
0
0
When using an EventDelegate in MonoBehaviour scripts I simply add the public method that I wish to be stored by the delegate. While using EventDelegate in a NetworkBehaviour script, it is forcing me to include a NetworkReader variable.

Just curious, why does this force us to require NetworkReader? I get that a NetworkBehaviour script is for networking functionality but not entirely sure how to include the NetworkReader or why it is required for an EventDelegate that will only happen on a...

Why does NetworkBehaviour EventDelegate require NetworkReader?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>