Rotate object relative to camera's view

Ok so I have a game where my fps character can pick up and move objects, I want to make it so they can also rotate the object, but I can’t seem to figure out how to make the object rotate relative to the camera’s view. So when the player rotates the object if they rotate the object left then up it throws off all of the controls. Any suggestions?

With the rotation you can specify the rotation locally or in relation to the world. If you check here:

you will find a sample utilizing Space.World. If that doesnt work you can try Space.Self as well and see how it is affected.

I think I would parent the object to the player or the camera (depending on what you want) when the player picks it up, and unparent it after the player relases it.

You can do this with transform.parent = (objects transform here);