handzlikchris / handzlikchris/FastScriptReload
[Bug] ArgumentException: Button text exceeds 64 characters in Welcome Screen
- Lenguaje dominante
- C#
- Estrellas
- 2.2k
- Forks
- 167
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
# [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
```text
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
1. Import Fast Script Reload v1.8 into a Unity project.
2. Ensure Unity's "Auto Refresh" is enabled in Preferences.
3. Restart the editor or wait for the `InitializeOnLoad` call 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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Abre FastScriptReloadWelcomeScreen.cs e inspecciona EnsureUserAwareOfAutoRefresh() alrededor de la línea 988. Confirma que el texto del botón que se pasa a DisplayDialogComplex de Unity supera el límite y acórtalo según se describe en el issue. Reproduce la inicialización de la pantalla de bienvenida en Unity y verifica que el diálogo aparece sin una ArgumentException.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, unity
- Área
- game-dev, tooling
- Tipo de issue
- Error
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 88/100