Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#33 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, unity
領域
game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

  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".
主要言語
C#
スター
1.5k
フォーク
303
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/Addressables-Sample のほかの issue

Unity-Technologies/Addressables-Sample の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。