handzlikchris / handzlikchris/FastScriptReload

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

Offen
#166 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
2.2k
Forks
167
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.