Change camera position when click UI

Hi evrywone!)
How to change camera positon (change view) when I click UI button?
something rotate around Object (target).

thnks for any answer!

Too many ways to be honest. The 1st thing that comes to mind:

  • add arrow components indicating desired camera positions (you already drew pretty arrows - the comps go there)
  • dispatch a click a from the widget
  • Lerp camera transform from current to the arrow’s transform - a Timeline would work well here

something rotate around Object (target).

Can be done this way, too - there is a node called Rotate Vector, it does precisely that. However, if your camera has a springarm, you can just rotate that instead.

1 Like