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

MonoDevelop Problems.

Discussion in 'Scripting' started by CelticKnight, Jan 12, 2015.

  1. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    I am very new to Unity only been using it for 4 days - the free version. So please be gentle :).

    Anyways, I bought a book on Unity and been going through it and have been doing a little scripting in MonoDevelop, but, when I save the scripts even with deliberate mistakes nothing happens within MonoDevelop it does not nofity me of an error until I try and either Build or Play the scene within Unity. Then I have to look at the status line for where the error is and traverse there manually. I say error because it will only do one error at a time that way.

    Using "Build all" within MonoDevelop either causes MonoDevelop to stop functioning or Unity to hang.

    I am used to using programs that catch syntax errors before building and pointing out where the error is and highlighting the line. Can MonoDevelop do anything like this?
     
    Last edited: Jan 12, 2015
  2. Dameon_

    Dameon_

    Joined:
    Apr 11, 2014
    Posts:
    542
    Switch to Visual Studio. Leaps and bounds ahead of Mono.
     
  3. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Well ... the Unity course that I am interested in doing later this year, website, recommended downloading Visual Studio as one of the suite of programs to use with Unity.

    So, I might as well get onto it. Thanks :).
     
  4. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    Switch to visual studio +1
     
  5. fire7side

    fire7side

    Joined:
    Oct 15, 2012
    Posts:
    1,819
    I guess I do that without thinking about it. It only takes a moment to start the game up and as you do more programming, you will make fewer syntax errors. The other runtime errors, there is no other way than to run it. Visual Studio can't change that.
     
  6. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    You don't build in MonoDevelop. It's used as a text editor only. A fancy one with helpful tools (and... unhelpful issues), but that's all.

    The status line only shows the first line of the latest console entry. If you open the Console it'll give you a list of entries, and each one has more detail. Additionally, double clicking a Console entry which arose from a compile error will take you to the relevant line if your IDE supports it, which MonoDevelop does... usually.

    If you're able to, I do agree with switching to Visual Studio 13 CE and UnityVS, though. All of the above still applies, but it's a generally more powerful and polished toolset.
     
  7. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Thanks so much for your input guys :). It helped a great deal.