Trouble with network identification

Hi all!

So here’s the thing.
I’ve read somewhere that a parent game object with an networkID can not have a child game object with a networkID.

Problem is: I’m making a space game where my players are inside a ship. When the pilot move the ship, I need the other players to stay where they are in the ship. (to keep there relative position.)

Obviously I can not just put “player” as a child to “ship”.

Question is: is there a script to put on player game object so it would keep it’s relative position to the ship and/or is there another way to network the whole thing so I can put the player object as a child to the ship?

Thank you for your time.

Have a nice day. :slight_smile:

Unet was deprecated a year and a half ago. Switch to another network API for that reason regardless, but choose one which also addresses this specific use case better.

Ok tanks. What do you think of photon?

I’ve never tried it, but it has a good reputation.

Alnos, have you thought about possibly not making it a child? You could simply attach the player to the “seat” of the space ship, and give it client authority to the player in that seat. Then switch movement controls from player to ship, or to ship controls entirely.

That is what I do for the pilot, but I can’t do this for the other players moving around the ship while the pilot is moving the ship. It’s not an X-wing, more like an akira-class ship. (Startrek)