Search Unity

Bug I have a scripting problem, have Error 1514 and don't know where I went wrong

Discussion in 'Scripting' started by lukasremcevic08, Aug 24, 2021.

  1. lukasremcevic08

    lukasremcevic08

    Joined:
    Aug 24, 2021
    Posts:
    2
    upload_2021-8-24_16-38-5.png
    The problem is within lines 9 to 31, there's meant to be a bracket somewhere but I have no clue where, please help!
    upload_2021-8-24_16-38-44.png
     
  2. diXime

    diXime

    Joined:
    Oct 2, 2018
    Posts:
    162
    Hello,
    [sorry I messed up with your nested class]
    Your namespace have to have an opening brace and a closing one, such as classes;
    so after namespace and at the end of your code.
    Code (CSharp):
    1. namespace YourNameSpace
    2. { // here
    3.    public class Class1
    4.    {
    5.        public class NestedClass
    6.       {
    7.       }
    8.    }
    9. } // and here
     
    Last edited: Aug 24, 2021
  3. lukasremcevic08

    lukasremcevic08

    Joined:
    Aug 24, 2021
    Posts:
    2
    Ok thanks for the help!
     
    diXime likes this.