Ok, I have an idea but i cant seem to get it to work… I wanna have a camera and light at a certain position and when i take my mouse and hoover over a certain object the camera light moves to that object. I have everything set up accordingly and i have used the on mouse enter function and i have confirmed it works now i need to know how to make the camera move to the object that the mouse is hoovering over. I assume i know i have to alter the camer’s transform but i dunno how. so how to i alter the camera’s transform to get it to move with in the on mouse over function? do i make a call to a script that is on the camera? Or can i alter the cameras position from with in the on mouse over function? and how?
I would put the camera follow script on the camera, then change its target as required
If you only have 1 camera you can access it from OnMouseEnter with Camera.main. The transform is exposed at that point so you can move it however you want.
@Jlcnz i dont want a smooth follow i want the camera to move smoothly to a different position. so what KelsoMRK should work
thanks alot KelsoMRK i’ll give it a shot