Set rotation to direction instantly without using an update

Hello,

I have a transform, I have a direction and I want to instantly set the rotation to this direction without using an update, all the solutions I find online are including using Update method. Any ideas?

You need to put it in the Start or Awake function…It only does this once at the beginning.

Is not that what I am asking, I am asking which call rotates the object instantly towards a vector3 direction.
For example the LookAt(Direction) works on the update since happens over time. I want instantly an object to change the direction towards a direction. Do you know which code does that? Thank you

Are you asking how to rotate a GameObject? The Transform component of the GameObject has a rotation attribute you can use.

This might be helpful.