Search Issue Tracker
Fixed
Fixed in 2021.3.10f1, 2022.1.14f1, 2022.2.0b4, 2023.1.0a1
Votes
7
Found in
2023.1.0a1
Issue ID
UUM-3986
Regression
Yes
Duplicating materials causes warning in Inspector - "The main object name should match the asset filename"
Reproduction steps:
1. Open user attached project
2. Go to Assets\\_Content\\Materials\\1DEV\\Grid and select any material
3. Press CTRL + D
4. Observe the Inspector
Expected result: Inspector does not have any warnings
Actual result: Inspector displays warning saying - "The main object name should match the asset filename"
Reproducible with: 2021.2.0a18, 2021.3.4f1, 2022.1.3f1, 2022.2.0a16
Not reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.1.28f1, 2021.2.0a17
Reproduced on: Windows 10
Comments (4)
-
swalk
Feb 28, 2023 00:59
This issue persist when copying animation files (.anim) and renaming them outside the Unity Editor. Possibly also other file types I assume. While the OP specifically named materials, it's really a larger issue that has not been resolved and this should not be set to "Fixed".
I'm using 2021.3.19f1 LTS and this issue is still a problem. -
Tortuap
Sep 23, 2022 09:45
This also happens when renaming Scriptable object assets (both asset & meta files) outside Unity, then refreshing under Unity.
-
LorenzoNuvoletta
Aug 31, 2022 21:33
Unity 2022.1.7, this is happening on all *.asset files. The m_Name wants to change back and forth between "myAssetName" and "myAssetName.asset".
-
OffBrandLaw
Aug 31, 2022 21:16
A workaround that solved it for me is I needed to move the scriptable object subclass to a dedicated script containing only that class. I have no idea why this matters but it solved it for me. Noticing a lot of ridiculous bugs like this in the 2021 version, should've stuck with the 1994 build.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
Resolution Note (fix version 2023.1.0a1):
PR : https://ono.unity3d.com/unity/unity/pull-request/144152/_/assetdatabase/mainobjectname/fix-extensions-in-names