Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by MattTheProgrammer · Nov 03, 2013 at 09:27 AM · programmingc++

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??

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AndreiMarian · Nov 29, 2016 at 08:34 AM 0
Share

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.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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++:

http://search.unity3d.com/uss1/?q=c++≈p=Feedback

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MattTheProgrammer · Nov 03, 2013 at 09:43 AM 0
Share

Thanks for the answer, I will just do C#. $$anonymous$$uch appreciated.

avatar image AndreiMarian · Nov 28, 2016 at 11:16 AM 1
Share

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

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges