Addressables AssetReference "None" value is not saved in Editor when used in Prefab
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- 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.
- 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".
- Ngôn ngữ chính
- C#
- Star
- 1.5k
- Fork
- 303
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Unity-Technologies/Addressables-Sample
-
ODR doesn't seem to work anymoreĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Unity-Technologies/Addressables-Sample#98 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Unity-Technologies/Addressables-Sample#94 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Unity-Technologies/Addressables-Sample#90 · 1 bình luận ·
Tất cả issue của Unity-Technologies/Addressables-Sample
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AvaloniaUI/Avalonia#22323 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
microsoft/onnxruntime-genai#2633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FluentDataGrid: pinned column offsets leak into the grid of an open RowDetails (master-detail)Đang mởNot reproducible
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/fluentui-blazor#5350 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
python triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
microsoft/semantic-kernel#14491 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:jobads-cv FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
klasolsson81/jobbliggaren#1878 ·
Maintainer thường phản hồi trong vòng 1 ngày