Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Addressables AssetReference "None" value is not saved in Editor when used in Prefab

Abierto
#33 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp, unity
Área
game-dev

Línea de trabajo

Start with the attached project, open SampleScene, and reproduce the issue on the ObjectWithReference instance by changing Asset Reference to None, saving, reloading, and checking the Inspector. Trace how the prefab instance value is saved and restored; done means None remains None after the scene is saved and reloaded.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

  1. There is a public field of Addressables.AssetReference type in MonoBehaviour component.
    This component is attached to a GameObject that is converted into prefab. Then prefab instance is added to the Scene. Changing field value to anything except "None" (empty) works fine. But after the value has been changed to anything it can not be changed back to "None" (empty value).
    Changing value inside of the Prefab to anything except "None" partially solves the problem, but that's not a solution because it forces the prefab to keep reference to some object.
  2. Steps to reproduce:
    2.1. Open project attached.
    2.2. Open the SampleScene and select ObjectWithReference instance on the Scene.
    2.3. In Inspector change value of field "Asset Reference" to "None".
    2.4. Save the Scene.
    2.5. Reload the Scene.
    2.6. Select ObjectWithReference instance on the Scene.
    2.7. Result: the value is not "None" but the reference to the object that was set before.
    Expected result: the value is set to "None".
Lenguaje dominante
C#
Estrellas
1.5k
Forks
303
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Unity-Technologies/Addressables-Sample

Todos los issues de Unity-Technologies/Addressables-Sample

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.