x


Can a Network.Instantiate()'d object be Object.Destroy()'d?

I'm mostly just curious: if I use Network.Instantiate() to spawn a GameObject on multiple clients, do I need to use Network.Destroy() to remove it, or would it be safe for all the clients to just Object.Destroy() it locally (assuming, of course, that they all destroy it)?

Phrased differently, are Network.Instantiate() and Network.Destroy() pretty much just RPC wrappers around Object.Instantiate() and Object.Destroy(), or do they do additional work behind the scenes that makes it necessary to use the Network versions on both ends of an object's lifetime?

Thanks!

more ▼

asked Jun 28 '12 at 09:54 PM

Cort gravatar image

Cort
0 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2091
x1678
x764
x702

asked: Jun 28 '12 at 09:54 PM

Seen: 378 times

Last Updated: Jun 28 '12 at 09:54 PM