How to Start look rotation for default mouselook.

Hi, i am using the included c# mouselook script and it is working perfectly.

However, I would like to set the starting rotation at -38, 90, 0. this is the camera’s rotation by default.

When the script runs, the rotation immediately “snaps” to the minimum x and the minimum y.

i’ve tried adding:

transform.eulerAngles = Vector3(38, -90, 0);

To the “start” function, but get:
“Expression denotes a type', where a variable’, value' or method group’ was expected” as an error.

any ideas?

[Note : I have edited the script to limit x rotation but i don’t think that’s the issue.]

transform.eulerAngles = new Vector3(38, -90, 0);

The C# compiler is bad, really mean, and loves to screw up our lives complaining about everything with undecipherable error messages like this one - which, by the way, just means “You must place a new keyword in front of Vector3, but I’m too evil to explain this clearly”.

The right thing in C# is:

transform.eulerAngles = new Vector3(38, -90, 0);