Answer the question
In order to leave comments, you need to log in
Is C# code freely convertible to C++?
Good afternoon,
I work closely with 3d graphics (3ds Max), I have experience in communicating with some web programming languages (JS, PHP, etc.). For 3d, you need to work with Unity3d (C#) and (or) Unreal (C++) game engines (I choose now), I also know that C# is in many ways close to Java, which I also like as the idea of universalizing the approach to programming. But since C-like languages have never come across the question in any form: if the platform (for example, Unreal Engine) specifies C ++ in the language requirements, does this mean that I can make my project in C #, and then calmly convert it in Visual Studio in C++. Does Visual Studio allow this kind of flexibility? Are there pitfalls? Thank you for good links. Also very interested in the experience of developers under Unreal.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
In the form in which you need - no, they are not. Syntactically, these languages are similar, but it is impossible to automagically convert and work properly.
No, these languages are completely different and not at all similar to each other.
Theoretically, it is possible to compile a C# project, disassemble the assembly with a reflector with the c ++ / CLI plugin, finish the resulting sources with a file.
www.red-gate.com/products/dotnet-development/reflector
https://github.com/lzybkr/CppCliReflector
1) Use C# to script in Unreal Engine 4 now, courtesy of Xamarin.
2) https://mono-ue.github.io.
I have not tried it myself, but my friends (game developers on UE 4) say that there is a plug-in for this matter.
On Unity3D, for example, this C # is not so much needed, basically the difficulties go through Unity3D bells and whistles (in my case).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question