Development/Documentation/mono.md
Custom fork: https://github.com/FlaxEngine/mono with custom features for C# assemblies hot-reloading at runtime without domain unload (more: https://flaxengine.com/blog/flax-facts-16-scripts-hot-reload/).
Startup docs about building mono: https://www.mono-project.com/docs/compiling-mono/
Some useful notes and tips for devs:
-monolog to print Mono logs to Flax logslocalRepoPath to local repo location in Source\Tools\Flax.Build\Deps\Dependencies\mono.cs.\Development\Scripts\Windows\CallBuildTool.bat -log -ReBuildDeps -verbose -depsToBuild=mono -platform=Windows, then build engine and run itMONO_GC_DEBUG=check-remset-consistency - it will do additional checks at each collection to see if there are any missing write barriersMONO_GC_DEBUG=nursery-canaries - it might catch some buffer overflows in case of problems in code.MONO_GC_DEBUG=<log-level>:<log-file> - will print GC debug to the log file (eg. 4:sgen-gc).mono_custom_attrs_from_property and mono_custom_attrs_get_attr are internally cachedAccess memory violation. First search for error in c# code. No workaround yet.