- Home /
RPC method gets called before Start().
I have a GameObject with two components: one is inherited from MonoBehaviour and one from NetworkBehaviour. The Network one receives RPC calls every frame and, once they are received, calls a function in the MonoBehaviour component. What happens is, as I join the game as a clinet, the method in the MonoBehaviour component is called before the Start() was called on that component. In a multiplayer setting, Is there a way to ensure that my components ALWAYS call some method BEFORE doing ANYTHING else?
Maybe I should fire a message inside OnServerStarted()/OnClientStarted in my Network component?
Your answer
![](https://koobas.hobune.stream/wayback/20220612085737im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Missing @RPC attribute error while it is there. 1 Answer
Multiplayer - Opposite names above players 1 Answer
UNET OnTriggerEnter called due to placement of Network-GameObjects on Clients 0 Answers
UNet SyncVar not working 3 Answers
Errors shown when server tries to send ClientRpc to a client who just disconnects 0 Answers