By default only the owner will be able to send RPCs to a network object. You can also assign a master networking player that can call RPCs(while not being allowed to set fields) using:
networkObject.AssignMaster(NetworkingPlayer);
If you want to allow anyone to send RPCs(like before the change), you can use:
networkObject.AllowPublicRpcs = true;
AssignMaster and AllowPublicRpcs should be only used on the server.
By default only the owner will be able to send RPCs to a network object. You can also assign a master networking player that can call RPCs(while not being allowed to set fields) using:
If you want to allow anyone to send RPCs(like before the change), you can use:
AssignMaster
andAllowPublicRpcs
should be only used on the server.