Camera orbit with touch

Hi, I am making a game on iPhone that I need to be able to orbit a camera 360 degrees around an object. This needs to be done however by dragging the screen to move in any direction, not by swiping to move 90 degrees. Any help would be much appreciated, I’ve never worked with mobile before. Thanks

@Westy00 Look at transform.eulerangles. Store the rotation of the axis you want to rotate as a float and then increase or decrease it each frame the user touches the screen to rotate the camera. I have done what you are trying to achieve myself and spent a few hours researching the best way to do it. There are many ways to do it but I have found eulerangles to be the best one as you can keep track of the rotation of the gameobject.