258 points · by rajadigopula · 10y ago · 31 comments
I currently only use F# for fun and games. I hope to use it for an upcoming project however.
F# might just be the thing I'm looking for. And I love the idea of functional programming in unity.
Desktop platforms work fine.
F# doesn't have the Unity editor and project support that C# & UnityScript have. In practice this isn't much of an issue.
There are few things to be mindful of:
1. The F# target platform must be changed to Unity's .net 3.5 equivalent. Similarly, full framework support must be enabled in Unity.
2. VS debugger support requires turning off optimisations and running a post build step to convert between Microsoft's pdb format and Mono's mdb. The debugger itself is actually far more stable for F# than for C#. 3. Unity profiler support requires adding the compilation symbol 'ENABLE_PROFILER' to the F# project.
I haven't had much luck finding concrete evidence though. Is this an issue with Unity and F#?
edit: typo edit 2: well I was a bit too eager to add the website just to find it to be the base for the linked GitBook- my bad- I just appreciated the content so much ;)
[0]: https://swlaschin.gitbooks.io/fsharpforfunandprofit/content/...
F# is impressive and so is the website. I highly recommend reading this if you are interested in F#/functional programming.