If you are interested in maintaining it, please send me an email: waneck at gmail.
Unity-Haxe tools. Compile to Unity3D from Haxe.
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
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.
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
- The HaxeBehaviour class is available, but some of its features demonstrated were proof-of-concept and are still unaccessible
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!