How do I parent a new camera to my main camera?

I am having some trouble making my new camera a child of main camera, and centering my main camera onto my new one. Could anyone explain how to go about this?

Thanks,

In the editor, just add a new gameobject of type ‘camera’ and drag/drop it onto your existing camera. Then set its position to 0,0,0 rotation to 0,0,0 and scale should be 1,1,1

In code it’s kinda the same. Make a new game object, add component camera, then set its transform.parent to be the transform of the camera (Camera.main.transform for example)

Thanks, that worked