handzlikchris / handzlikchris/FastScriptReload
Unable to compile new("option") format instead of new TMP_Dropdown.OptionData("option")
- Lenguaje dominante
- C#
- Estrellas
- 2.2k
- Forks
- 167
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
```
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class TmpProIssueTest : MonoBehaviour
{
// dropDown
[SerializeField] private TMP_Dropdown sortDropDown;
public void Init()
{
UnityEngine.Debug.Log("CHANGE HERE");
sortDropDown.options.Clear();
sortDropDown.options.AddRange(new List()
{
new TMP_Dropdown.OptionData("latest_order"),
new TMP_Dropdown.OptionData("old_order"),
new TMP_Dropdown.OptionData("order_of_progress"),
new TMP_Dropdown.OptionData("order_of_low_progress")
});
}
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reproducing the issue with the TmpProIssueTest example and compare compilation of explicit TMP_Dropdown.OptionData construction with the requested new("option") form. Trace the compiler or hot-reload path that handles this expression; done means the shorthand compiles and works for the shown dropdown options without breaking the existing form.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, unity
- Área
- compilers, game-dev
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 20/100