[SOLVED] Using Haxe C# Backend

Can I code in C# instead of haxe. and use it in my Armory scripts?
Would this have any impact on my Armory projects?
Is it easier to learn haxe, for an average C# user?
Would this be all I need?

Sure you can. You can try this tool. Only, it’s not encouraged for your purposes.

CS2HX is great if you have an existing C# codebase you wish to port over, either as a one-time conversion or for an on-going basis for sharing logic. It is not designed to replace haXe, nor is it designed as a reason to avoid learning haXe. Rather, it eases the transition to haXe for those with existing C# codebases.

So long as it get haxe[d], there is no problem. :wink:

Yes. It’s super easy.

C# and haXe are very similar languages in many ways…
[Although] C# supports a lot of features that haXe does not.

Don’t let that deter you. You’ll love it.
Consider it a way of advancing your programing skills. :smile:

No. You do not need that.
That does the reverse of what you want to do.

To compile Haxe to C# we need two obvious prerequisites installed:

  • hxcs haxelib. This is the support library for the C# backend of the Haxe compiler…

It is not designed to replace haXe, nor is it designed as a reason to avoid learning haXe

:joy:
Got it covered. Thanks. :smiling_face: