I saw that you have an option in unity to write script code to control the objects movement.
I also saw that someones have integrate unity with visual studio, and write their code
in visual studio. How is it possible?
I have visual studio 2010, and I want to integrate unity with visual studio,
because I want to use c++ and not C# or other scripting options from unity.
Is it possible? how it can be done?
If you want to integrate Unity with Visual Studio, then I’d get the free ‘Visual Studio Tools for Unity’. If you’re currently using Visual Studio Express Edition, then you’ll need to download the Community Edition (which is also free).
Being able to use C++, however, while apparently technically possible, is far less likely, and I doubt anybody has actually done it. Your Unity scripts are just compiled into a DLL, and if you like you can manually compile script DLLs and stick them in the project. Since it all runs in Mono, you can really use any language that compiles to the .NET CLR - and I think Visual C++ can do that. It’d be quite a hack though, and since C# is so similar to C++ that you can learn any differences pretty quickly, and since we’re generally talking about the least-performance intensive parts of a game (the physics engine etc. are already written in C++), it would be hard to see the point.
What you can apparently do if you have Unity Pro (I don’t, so I’ve never tried it) is write a DLL in the language of your choice and call that from your scripts. In that sense you may still be able to do a fair amount of your programming in native C++.