- Home /
problem with RPC instantiate on network
hi guys, i want instantiate a cube on network with RPC (first allocate view ID)
but when i instantiate i have this log in unity:
Receiving state for an object whose network view exists but the observed object no longer exists
I don't know about it :(
Post the code of your RPC call and the RPC method and if you instantiate a prefab, tell us more about what components are attached, especially networkviews and their settings.
Answer by 34638a · Jul 09, 2014 at 11:03 AM
That problem should be fixed by using Network.Instantiate()
and instantiate the object at run time, after connecting or hosting a network server.
Answer by Bunny83 · Jul 09, 2014 at 11:29 AM
This error tells you that you have an object with a NetworkView and a valid ViewID which is receiving an update from the network, but the observed component, that is the component that is actually synchronised by this NetworkView, is missing. This can happen when you either don't assign the wanted component on the other side, or you have destroyed that component only on one side.
You have to give us more information.
Your answer
Follow this Question
Related Questions
Error in runtime:"View ID AllocatedID: 6316 not found during lookup. Strange behaviour may occur" 1 Answer
How can I spawn a GameObject on all players in my multiplayer game? 0 Answers
Players Not Showing 0 Answers
Network.Instantiate instantiazing 2 prefabs 1 Answer
Client does not recieve host's Network.Instantiate during game setup 0 Answers