Starter project for Unity with F# as a scripting language
Before you start make sure the following criteria are met:
- FSharp.Core.dll is present in the Assets folder
- Assembly-CSharp.dll is compiled into Library\ScriptAssemblies\ folder (in case you have at least one
.cs
file in the project it should be compiled by Unity on a startup) - CoreScripts/CoreScripts.fsproj has valid paths to Unity dependencies (validate the path itself and a Unity version)
- CoreScripts.dll is compiled into Assets folder (it can be done by running
dotnet build
inside of the CoreScripts folder)
To auto-reload F# scripts on save run dotnet watch build
inside of the CoreScripts folder, Unity will pick up the changes automatically.
- Use env variables for Unity dll paths and Unity versions for F# project
- Add CI/CD configuration