About Quaternion.Euler

Hi all,

I tried some tests about Quaternion.Euler today, but I faced a problem.
I check the scripting API about it. Its description is “Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).
But when I tried to rotate 30 degrees around the y-axis, the correct code is

public Quaternion rotation = Quaternion.Euler(0, 30, 0);

So I want to know if I misunderstand the description or the order is wrong in the official API document.

Thanks a lot!

“In that order” means that Euler(x, y, z) will first do the z-rotation, then the x-rotation, and then the y-rotation. It doesn’t relate to the order of the arguments.

OK, understood!
Thank you for your explanation!