How do I synchronize movement for a bone?

Hi everybody. I just started using Netcode for GameObjects two days ago, so I am still very confused about this.

In my game, I want the player camera’s X rotation to influence a spine bone so that the character model looks up and down with the player. I have this code working, but I’m unsure how to synchronize the bone movement for all other clients.

My main problem is trying to sync the rotation of a child object, which doesn’t work and gives me this error:
Spawning NetworkObjects with nested NetworkObjects is only supported for scene objects. Child NetworkObjects will not be spawned over the network!

Is there a way to get this working?

Sounds like you want IK for your character. I use the Animation Rigging package.

https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.2/manual/RiggingWorkflow.html

Will this sync with all other clients?

If you put a network transform on the IK targets, yes

yes this works, but also dont forget to change the riglayer weights with a networkvariable