Search Unity

Errors are creating more errors as I try to fix them

Discussion in 'Scripting' started by bmili, Jun 17, 2019.

  1. bmili

    bmili

    Joined:
    Jun 13, 2019
    Posts:
    3
    So, this all started because I changed 1 number.
    Code (CSharp):
    1. float pitchMax = 60f;
    to
    Code (CSharp):
    1. float pitchMax = 80f;
    and it cause all of this.
    Errors.PNG
    and I have tried to change the protection to public and it just causes more errors to pop up.
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    Unfortunately, just changing the value of a float like that isn't going to create those errors. Unless you just compiled the scripts after changing that value.

    It looks like the issues are with timeline. Are you using the latest timeline version?
     
  3. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Changing the value of a field is not going to throw any compile errors unless the value is of an incorrect type, which isn't the case here. You'll notice that "pitchMax" doesn't appear in any of the error messages.

    The error messages tell you exactly which field or method in which script is causing an error. Double-clicking the errors in the console will direct you to them in Visual Studio.