What is "transform.rotation" doing, exactly?

What is the code “transform.rotation (90, 0, 0);” doing, exactly? Does it rotate Euler angles? Local or Global?

And also, how would I lerp a 90 degree rotation?

What is the code “transform.rotation (90, 0, 0);” doing, exactly?

Giving you a compiler error because it doesn’t make any syntactical sense would be my guess.

But for example transform.rotation = Quaternion.Euler(90, 0, 0); sets the world rotation in Euler to 90,0,0. And transform.localRotation = Quaternion.Euler(90, 0, 0); does the same for local rotation.

Dude, it’s all in the API docs and a lot faster than asking on the forums. It’s the first Google result for “transform.rotation”.

transform.rotation
transform.localRotation
Quaternion
The quaternion doc even has an example for you Lerping question