Camera look at object

I want when the player clicks on an object, such as a painting on the wall, the camera looks directly at the object

Like this

Before clicking:

After clicking:

I tried to find a tutorial but I didn’t find anything specific, if anyone can help me I would really appreciate it

I use this one. But I’m not sure if that will help. I used optional it for interactions and camera selection in the scene for object.


https://www.youtube.com/watch?v=uW86ZGxesmc

Or i think u can use different ways:
https://www.youtube.com/watch?v=fzIG4krjWaM

or try searching Mathew Wadstein tutorials (great guy)
https://www.youtube.com/@MathewWadsteinTutorials/search?query=camera

And there’s a lot of useful stuff on Reddit.

1 Like

Perfect, can you tell me how I can control the camera?
as if it were the player’s camera?

I’ll leave the solution I found here, in case anyone has the same question.

First I created a click event on the board using the tip that Trastrastras sent and I cast it with the camera blueprint to call the event in which I can take control of it:

In the camera event I disabled character control so I can now have camera control:

And still in the same event I set the camera rotation with the X and Y movement of the mouse as follows:

Thanks for your help, I hope it helps someone else