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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Script not compiled

Discussion in 'Scripting' started by DanaMazzo, Mar 5, 2014.

  1. DanaMazzo

    DanaMazzo

    Joined:
    Feb 2, 2014
    Posts:
    32
    Im new.
    Sometimes I add some script to some object
    and I get message like "script is not compiled".

    So Im interested why this happens?
     
  2. Caio_Lib

    Caio_Lib

    Joined:
    Mar 4, 2014
    Posts:
    83
    Choosing Window -> Console.
    The Console shows errors?
     
  3. patricioaljndro

    patricioaljndro

    Joined:
    Mar 6, 2014
    Posts:
    12
    Probably it has syntax errors in the code, maybe the errors don't appear on the console as there still are not part of unity, you can check it directly from MonoDevelop, in the menu Tools -> Build ->Bluid On or press F8 .
    I advise when you create a script, add it to an object immediately, so Unity could check it directly

    Greetings!
     
    Last edited: Mar 6, 2014
  4. DanaMazzo

    DanaMazzo

    Joined:
    Feb 2, 2014
    Posts:
    32
    Tnx, I noticed sometimes good writen code was rejected also...
    yeah I will try as you said, tnx.