Lets say i have a network object player which has a child named,lets say, a laser gun(at this stage he doesnt have network object attached) and i want to connect to the gun a laser prefab(which has a network object attached) this laser prefab should be attached to this small hirrachy as in
player
laser gun
laser
ofcourse during game player can switch laser guns and lasers so should ne able to destroy them and build and reconnect them
The easiest way is to build an all-encompassing prefab that contains all switchable variations rather than dealing with the difficulties of network-parenting and its unnecessary overhead when there’s a simpler alternative.
This resolved Github Issue walks a user through one way to attach an object picked up to an owner/client authoritative (NetworkTransform) player. CodeSmile’s approach is another recommended path to take.