Netword.Destroy error :|

 
Post new topic   Reply to topic    Unity Community Index // Multiplayer Networking
View previous topic :: View next topic  
Author Message
haxoan87



Joined: 13 Oct 2009
Posts: 5

PostPosted: Thu Nov 05, 2009 9:19 am    Post subject: Netword.Destroy error :| Reply with quote
Hi All ! I have a problem when try to Destroy gameObject Using Netword.Destroy(gameObject).

- My Object war created from Network.Instantiate, but when I destroy this , I get errors :

"Couldn't perform remote Network.Destroy because the network view 'AllocatedID: 8' could not be located"

How to fix this problem ?
Thanks !
Back to top
View user's profile Send private message
cyb3rmaniak



Joined: 10 Dec 2007
Posts: 159

PostPosted: Thu Nov 05, 2009 4:29 pm    Post subject: Reply with quote
Any chance you did something with the networkView? Are you maybe destroying it before destroying the gameObject?
Can you see the networkView in question when playing in the editor?


Oh wait, are you by any chance runing that code more than once? (Like, from a script that runs on every game object you want to destroy...).

_________________
-"When all else fails, follow instructions."
Back to top
View user's profile Send private message MSN Messenger
haxoan87



Joined: 13 Oct 2009
Posts: 5

PostPosted: Sat Nov 07, 2009 5:48 pm    Post subject: Reply with quote
thanks !
I haven't change netWorkView.I get problem when Destroy game object that is created by Network.Instantiate()
I still test with RPC function or using Network.Destroy , sometime get this problem.
I don't know this is the bug of unity ??
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Unity Community Index // Multiplayer Networking All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum