Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm pretty new to Game Development world. I'm using Unity 3D (4.6 - Latest version I think) and Visual Studio to code the script and something when I edit the script un VS 2013 and go back to Unity the script I edited does not match what unity "have". And Unity does not even show a compile error.

Exemple I have is :

(in a 2D environment) i wrote this script

void Update(){
    Vector2 tweak = new Vector2(Math.Random(0f,0.2f), Math.Random(0f,0.2f));
    rigidbody.velocity += tweak;
}

Well unity gave me the error that rigidbody does not exist on the Transform (aright that's cool im in a 2d env. so it's rigidbody2D.velocity. I edited the script, with the fix, but Unity was still executing the line BEFORE the fix. I had to close VS and Unity to fix this.

share|improve this question

1 Answer 1

Try using Visual Studio Tools for Unity from Syntax tree http://unityvs.com/ You can debug Unity from within Vs with this plugin.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.