r/UnityHelp • • Sep 01 '21

PROGRAMMING Assets\mouselook.cs(34,45): error CS8124: Tuple must contain at least two elements.

I am following a tutorial ( https://www.youtube.com/watch?v=_QajrabyTJc ) and i keep getting error CS8124, here is the code I have written. https://pastebin.com/c0jVQPgQ

2 Upvotes

3 comments sorted by

1

u/Bonejob Code Guru Sep 01 '21

Your multiplying Vector3.Up which equates to Vector3(0, 1, 0) you want to write it out in full;

playerbody.Rotate(0,mouseX,0);

1

u/NintendoNerdWasTaken Sep 02 '21

"UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor"

1

u/Bonejob Code Guru Sep 03 '21

What line is the error on? Will you post the code for the mouselook.cs and use the code button so it's indented and colourized?