temoncher / unity2d-fsharp-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

F# Unity starter

Starter project for Unity with F# as a scripting language

Development

Before you start make sure the following criteria are met:

  1. FSharp.Core.dll is present in the Assets folder
  2. Assembly-CSharp.dll is compiled into Library\ScriptAssemblies\ folder (it should be done by Unity on a project startup)
  3. CoreScripts/CoreScripts.fsproj has valid paths to Unity dependencies (validate the path itself and a Unity version)
  4. 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.

TODO

  1. Use env variables for Unity dll paths and Unity versions for F# project
  2. Add CI/CD configuration

About


Languages

Language:F# 93.6%Language:C# 6.4%