Search Issue Tracker

By Design

Votes

1

Found in

2019.4

2020.3

2021.2

2021.2.0f1

2022.1

Issue ID

1379369

Regression

No

Project window shows old sub-Asset name when using AssetDatabase.RenameAsset()

Asset - Database

-

How to reproduce:
1. Open the attached project (RenameAssetTest.zip)
2. Go to Repro -> Test at the top of the Editor window
3. In the Project window, expand the Asset "New Name A" by clicking the arrow next to its icon
4. Select the sub-Asset added to "New Name A"
5. Observe the sub-Asset's name in the Project window and at the top of the Inspector window
6. Navigate to the folder "Assets/Scenes" in the Project window
7. Return to the parent "Assets" folder and observe the sub-Asset's name

Expected result: the name of the sub-Asset in the Project window is always "New Name B"
Actual result: when created, the name of the sub-Asset in the Project window is "Old Name B", which changes to "New Name B" upon changing folders

Reproducible with: 2019.4.33f1, 2020.3.24f1, 2021.2.5f1, 2022.1.0b1

  1. Resolution Note (2022.2.X):

    User code was using rong API methods

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.