[Bug] ArgumentException: Button text exceeds 64 characters in Welcome Screen
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 88/100
Direzione di ricerca
Apri FastScriptReloadWelcomeScreen.cs ed esamina EnsureUserAwareOfAutoRefresh() intorno alla riga 988. Conferma che il testo del pulsante passato a DisplayDialogComplex di Unity superi il limite, quindi accorcialo come descritto nell’issue. Riproduci l’inizializzazione della schermata di benvenuto in Unity e verifica che la finestra di dialogo venga visualizzata senza una ArgumentException.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
[Bug] ArgumentException: Button text exceeds 64 characters in Welcome Screen
Description
In Fast Script Reload v1.8, the editor throws a System.ArgumentException during the initialization of the welcome screen. This prevents the "Auto-Refresh Awareness" dialog from appearing and can crash the editor initialization process.
The error is caused by a button text that is 65 characters long, which exceeds Unity's internal limit of 64 characters for EditorUtility.DisplayDialogComplex.
Error Log
System.ArgumentException: Text on buttons must be less than 64 characters long.
Parameter name: defaultButtonText
at UnityEditor.EditorDialog.ThrowIfButtonTextIsInvalid (System.String buttonText, System.String parameterName)
at UnityEditor.EditorUtility.DisplayDialogComplex (System.String title, System.String message, System.String ok, System.String cancel, System.String alt)
at FastScriptReload.Editor.FastScriptReloadWelcomeScreenInitializer.EnsureUserAwareOfAutoRefresh ()
Technical Details
- File: FastScriptReloadWelcomeScreen.cs
- Method: EnsureUserAwareOfAutoRefresh()
- Line: ~988
- Offending String: "Ok, disable asset auto refresh (I'll refresh manually when needed)" (Count: 65)
Steps to Reproduce
- Import Fast Script Reload v1.8 into a Unity project.
- Ensure Unity's "Auto Refresh" is enabled in Preferences.
- Restart the editor or wait for the
InitializeOnLoadcall to trigger the welcome screen.
Suggested Fix
Shorten the button text to 64 characters or fewer.
Original:
"Ok, disable asset auto refresh (I'll refresh manually when needed)"
Suggested Change:
"Disable auto refresh (I'll refresh manually)" (44 characters)
Screeenshots
Reporter: Umutcan Ekinci, 2nd Year Software Engineering Student at Yaşar University
- Lingua principale
- C#
- Stelle
- 2.2k
- Fork
- 167
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di handzlikchris/FastScriptReload
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
csc.rsp support Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Failed to find entry-points Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
handzlikchris/FastScriptReload#203 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
handzlikchris/FastScriptReload#197 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di handzlikchris/FastScriptReload
Issue simili
-
type/automation type/tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
t/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
ci-failure-cause test-failure
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:auth FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
klasolsson81/jobbliggaren#1788 ·