handzlikchris / handzlikchris/FastScriptReload

Executing compiler command should include /unsafe param if it's compiling unsafe code

Aperta
#166 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
2.2k
Fork
167
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Trying out the coolest package ever on my codebase.
Found that unsafe will not compile

```
error CS0227: Unsafe code may only appear if compiling with /unsafe'
at FastScriptReload.Editor.Compilation.DotnetExeDynamicCompilation.ExecuteDotnetExeCompilation
```

Fixed at Assets\FastScriptReload\Scripts\Editor\Compilation\DotnetExeCompilator.cs by adding /unsafe flag

![Image](https://github.com/user-attachments/assets/ca7ef0b7-a0e6-428d-873a-453ffcf4ce33)

BTW I am using Unity 6 and everything works fine. Your are the GOAT hehe

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.