Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How to release a GameObject from owner

$
0
0
I am testing UNET but is running into problem with things that probably should be very simple.

I have an Orange fruit (GameObject) that i can drag and have attached the network transform in code. When releasing the mouse (Mouse Up) I want to release the ownership of the Orange so none owns it. I have tested with ReplacePlayerForConnection and a few other things but totally screwed up the code.

I have now reset everything and must ask for some help how to do this.

The scripts i have,...

How to release a GameObject from owner

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>