Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

TYPE OR NAME SPACE DEFINITION OR END OF THE FILE EXPECTED

Discussion in 'Scripting' started by DenizKesen, Aug 27, 2020.

  1. DenizKesen

    DenizKesen

    Joined:
    Aug 23, 2020
    Posts:
    2
    unity code normal.png Can someone help me ? There is an error saying "Type or name space definition ,or end-of-file expected" i cant find a mistake. Please help.
     
  2. Terraya

    Terraya

    Joined:
    Mar 8, 2018
    Posts:
    646
    you need to add an " } " under your last function to close the class ..
     
  3. DenizKesen

    DenizKesen

    Joined:
    Aug 23, 2020
    Posts:
    2
    Thank you so much