handzlikchris / handzlikchris/FastScriptReload
Internal classes cannot be reloaded.
- Lingua principale
- C#
- Stelle
- 2.2k
- Fork
- 167
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If I am reading the history correctly, it seems like back in 2023 there was a fix to allow reloading internal classes. However, I am receiving "inaccessible due to its protection level" errors whenever I make a change to an internal class:
```
FSR: Error when updating files: 'HUDShipUpgradeButton.cs', System.Exception: Compiler failed to produce the assembly. Output: 'C:\Users\USER\AppData\Local\Temp\c9921ed0d75d4fee849e038c879c696c.SourceCodeCombined.cs(27,206): error CS0122: 'HUDUpgradeButton' is inaccessible due to its protection level
C:\Users\USER\AppData\Local\Temp\c9921ed0d75d4fee849e038c879c696c.SourceCodeCombined.cs(29,17): error CS0122: 'ShipUnitBehaviour' is inaccessible due to its protection level
C:\Users\USER\AppData\Local\Temp\c9921ed0d75d4fee849e038c879c696c.SourceCodeCombined.cs(31,18): error CS0122: 'ShipUnitBehaviour' is inaccessible due to its protection level'
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by reproducing the reload failure from HUDShipUpgradeButton.cs and inspect the FastScriptReload path that combines and compiles the changed source. Trace how internal classes such as HUDUpgradeButton and ShipUnitBehaviour are handled, then verify that editing an internal class reloads without CS0122 protection-level errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, unity
- Ambito
- devtools, game-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100