Creating Hint Vector

long story short, I need to create a function like transform.LookAt or Quaternion.LookDirection that doesn’t use Vector.forward as the direction or to find a way to create a hint vector in a function like Quaternion.FromToRotation.

Well, the calculations behind lookat aren’t that complicated, but are you aware of that you need two vectors? LookAt takes one direction and one up-vector and aligns the z-axis with the direction and the y-axis “in the direction of” the given up-vector.

As far as i know you can simply assign a vector to transform.up to make the upvector point into that direction, but i never used this.