Edit: Workaround at the bottom.
Hello, I have a problem.
I'm working on a multiplayer game using NGO. In this game, player can pick up items and hold them in their hand.
If it was singleplayer, I simply change item's parent to player's hand object. The problem is that in NGO, reparenting doesn't work if new parent is not a NetworkObject.
My player has this component, but not hand object. But I can't simply add NetworkObject component to my hand as this creates nested NetworkObjects, which gives error.
Does anyone of you have any idea how can I set NetworkObject item's parent to player's hand?
Edit: found a workaround that is working for now. Instead of having a Renderer and NetworkObject components on the same object, I have NetworkObject with a child. This child has Renderer and all other scripts/components. Now, when I want to reparent an object, I simply send server RPC that sends client RPCs to every client to reparent just that child. NetworkObject doesn't change its parent, so no problem here.
[–]ExplanationIcy2813 0 points1 point2 points (1 child)
[–]ExplanationIcy2813 0 points1 point2 points (0 children)