0
votes

I am a newbie in Unity. I have searched on the internet for tutorials on how to pick up GameObjects and followed them as it is. But here's the problem: This here is when I set the Camera as a parent to GameObject, initially....

And here's what happens when I move the camera.

The problem here is that the Object doesn't stay on the crosshair

This happens only when moving the camera along the Up-and-Down Axis (not sure if x or y).

However, this doesn't seem to be a problem in any tutorials. Is there any part of the code missing?

P.S:- I have set the Camera as a parent to the GameObject in the hierarchy directly without any code.

1
Try setting gameobject as parent of camera - MarkSouls

1 Answers

0
votes

It is difficult to know the exact problem without at least a video of it, but the first thing here is to make sure there's nothing messing with the object's transform outside of camera's parenting.