What I'm trying to do: Drag an object and sync.
- Player press E, sends a RequestOwnership function and it is
[ServerRpc(RequireOwnership = false)] - Server side should trigger the RequestOwnership function and then do the
nob.GiveOwnership(newOwner); - All players should get
public override void OnOwnershipClient(NetworkConnection newOwner)called.
Player that is also a server works fine. All other non-server clients do not work.
I've attached a unitypackage of all objects in scene and scripts (excluding the FishNet Pro).
Basically import the given unitypackage, start a new scene, delete the default camera and light, drag the "FishNet Ownership Test Scene" prefab into the scene, make build, etc. run it.
What am I doing wrong here? Why is the SimpleDragObject.cs > RequestOwnership not triggering on server side called from a client?
Using the following:
FishNet Pro 2.4.5hf0
Unity 2020.3.26f1
Half cup of coffee...