All Projects → unihx → Unihx

unihx / Unihx

Licence: mit
Unity-Haxe tools

Programming Languages

haxe
709 projects

Attention: This project is not being actively developed anymore.

If you are interested in maintaining it, please send me an email: waneck at gmail.

unihx logo

Unity-Haxe tools. Compile to Unity3D from Haxe.

Goal

To make Haxe a first-class Unity development language, making it even smoother to work with Haxe on Unity than with the natively supported Unity languages

Getting started

Use haxelib git unihx https://github.com/unihx/unihx.git to install it.

On an existing Unity project, run haxelib run unihx init path/to/unity/proj. Beware that you currently need a Haxe nightly build to be able to compile and use this library correctly.

What works

You can see a demonstration of some of its features at http://waneck.github.io/wwx-unity3d-haxe/ . The following are working already:

  • When Unity gets back to focus, it compiles the changed .hx scripts
  • You can click & drag .hx scripts into the inspector, like you can do with pure C#/UnityScript scripts
  • The C# compiled files follow Unity's folder passes - so you can create Editor scripts like you would with C#
  • Access any .NET library through -net-lib
  • Extend MonoBehaviour and code like you would with other Unity languages.
  • Use the @:nativeGen metadata to generate very clean code
  • Error positions always shown in the .hx code
  • Operator overloading on core structures like Vector2, Vector3, Matrix4x4, Quaternion, etc. See more about it at Core Structures

What still needs work

  • The HaxeBehaviour class is available, but some of its features demonstrated were proof-of-concept and are still unaccessible

Help wanted

Any kind of contribution will be much appreciated - from feature requests, testing it and adding bug reports, tutorials and documentation, to actual code and features! Pull requests are very welcome, and if you are excited as we are to bring an awesome Haxe support to Unity, let us know and join the team!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].