How to move Main Camera without moving its children?

I have my first person camera separate from the player and I have my players “hands” (or even gun, etc) object as a child of the camera. When I move the camera itself in the inspector, the hands move with it.

Is there any way to prevent this from happening unless I want it to? Because right now I’ve been adding head/view bobbing and I’m trying to make only my Main Camera move.

Currently I have my empty “Camera Holder” game object, with my Main Camera as a child of it, then my “Hands” object as a child of my Main Camera. Is it my implementation of my camera that is preventing me from getting the result I want?

You would want to make the camera and hands, gun, etc, all siblings, rather than the latter the child of the former.

That way you can rotate the parent object of both to move both camera and hands, while also being able to move the camera on top of that, without moving the hands.

How would you make them all siblings? Just place everything in an empty game object but keep them unparented to one another (beyond the empty game object)?

More or less. Game objects that are all children of the same transform are considered ‘siblings’.

  • what do you do for living?
  • when I’m not unparenting characters I might occasionally reorder their siblings or destroy some of their children