Setting degrees every frame?

I’m trying to set the Y-rotation to 90 every frame (lock it to 90 degrees if you want)
Its for a “2.5D” game, so I want a set orientation

But I can’t find any easy solution :frowning:
I dont want to tamper wit the x and z values

Anyone know how to do this?

transform.eulerAngles.y = 90;

You’re kidding me?!?
It’s that simple?

Thanx mate!

Hey, is that new for 2.0?

I don’t remember that.

Nope

Although it’s recommended not to set just one axis; for best results you’d set all three at once. Docs.

–Eric