- Home /
Can I program in C++?
Hi Im a C++ Programmer and want to create a Android and iOS game in Unity. I dont know C# (I believe C++ and C# are pretty similar), or Javascript. Is there any way i can program C++ in Unity??
I agree with you that C++ and C# are pretty similar, with an emphasis on "pretty". But there's a big but: letting alone the syntax differences, C++ is designed for performance and versatility whereas C# is designed for speed-coding (scripting) I'd venture to speculate that it halves the time of development at the cost of performance (halves performance). You can see this in every feature C# has changed from C++, be it added features or lacking features.
Now this is not necessarily bad for C#, on the contrary: these days most applications are needed to be developed fast and don't require fast execution times. Performance cost is a problem for say, 5-10% of the kinds of applications: games. And I mean serious decent Games.
Answer by Tomer-Barkan · Nov 03, 2013 at 09:31 AM
You can't, C++ is not one of unity's scripting languages. It is possible but compicated and really not recommended, to use plugins in Unity Pro to develop in C++. I speak from experience when I say that for a C++ developer learning C# is very easy. Mostly you have to get used to the syntax that is a bit different, and to the fact that almost everything is by reference and not by value.
Try starting from here:
http://msdn.microsoft.com/en-us/library/yyaad03b(v=vs.90).aspx
And feel free to log into Unity Feedback and vote for one of the requests to support C++:
Thanks for the answer, I will just do C#. $$anonymous$$uch appreciated.
I thank you $$anonymous$$er for the link to voting C++ idea. I didn't know I could do that - I'd have done it a long time ago. I encourage all C++ supporters to go there and put your votes down for it. Note that there's a couple of ideas - don't split up your votes but put them all on the same if we want to ever see Unity C++ scripting come true. I put all my votes on OFFER C++ SCRIPTING ON ALL PLATFOR$$anonymous$$S
Answer by DricoJD · Nov 03, 2013 at 11:18 AM
Unity only has 3 languages integrated with it: JavaScript (UnityScript) Boo C# If you want to code in c++ you must integrate it manually - which takes work, time and a mother-lode of effort - I would not recommend it.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Can't get this code to work 0 Answers
Best ways for two MonoBehaviour classes to communicate? 2 Answers
[C# Code] Why am I getting this error??? 1 Answer
Need help with a Borderlands style proficiency system. 0 Answers