- Requires .NET Core SDK
Installing this Unity package adds an F# menu to the Unity editor:
Compile F#F6 finds F# projects in the current Unity project folder and compiles them usingdotnetCreate F# projectcreates an F# project usingdotnetand adds all Unity referencesOpen F# project in default editoropens the F# project with the current default application for .fsproj filesInclude reference to C# projecttoggles the inclusion of a reference to the dll-file created by the Unity C# projectInclude additional referencestoggles the inclusion of references to additional Unity modules, besidesUnityEngineandUnityEditorCompile in release modetoggles building in release mode instead of debugShow debug informationtoggles printing of debug information during compilation
After creating an F# project through the extension, use the Compile F# button to compile the project and copy the resulting .dll into the Assets/-folder, so Unity can index it.
You can also compile from the IDE you are using to edit the F# files, as long as the dll-file is put in bin/Debug or bin/Release.
Just remember to click Compile F# to have the extension copy over the needed file.
Download the Unity package here