Need some help with networking, Object reference not set to an instance of an object.
Here is the code, i have tried many variations such as just using the server to create the object and using spawn with client authority. But none of it seems to work for me, i have non physical players. In this example i'm just trying to control a ball, but it doesn't appear to be synced up with the client and host at all, and the client gets this error when the host client tries to create a ball.
NullReferenceException: Object reference not set to an instance of an object Client.RpcSpawnPlayerObject (UnityEngine.Networking.NetworkIdentity _PlayerIdentity) (at Assets/Client.cs:76) How should i go about doing what i'm trying to do, i want a non physical player that has his player object across all clients here is the code, one of many, i have tried many different ways. https://pastebin.com/v37qh58g Thanks in advance. I'm new to networking and i just want to be able to move on past this point.
Your answer
Follow this Question
Related Questions
Mirror network error : There is already a player for this connection. 1 Answer
NetworkClient Send with no Connection 0 Answers
Cant reference Network.Identity connectionInfo 0 Answers
Null Reference in UnityStandardAssets.Utility.WaypointProgressTracker.Update 0 Answers
Network instantiate 0 Answers