I’m trying to get my head around the new Networking. With the old NetworkViews I was able to Allocate a ViewID, Instaniate an Object, store everything in arrays and send RPCs to spawn remote versions. With these viewIDs I could directly target anything I want over the network.
Whenever I then had to find something I knew I could search for the same unique viewID in my arrays on client and or server.
Example: I click on something on the client that I dont have authority over. Which means I have to send a request via my controls script and tell the server that I found something I want to interact with.
My problem is that I don’t know how to then find that object on the server. Because its stored nowhere. Even if I do store everything in arrays I dont don’t know what to compare in order to identify objects.
Am I supposed to read the assetID on the client, send it with the request, then look for the object with the same ID on the server to then call serverside methods on it? I tried comparing assetIDs, but it threw me an error.
Another approach I thought of was to let the objects themselves chanel the request. Meaning I call a Command on the client object I clicked on which will be executed on the according object on the server.
But I dont have authority or the client object, so will this even work?