Search Issue Tracker
Fixed in 2021.3.10f1
Fixed in 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X, 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
- Animator Controller Layer name stays unchanged in Layers tab when renamed from Inspector
- [RenderingDebugger]Motion vectors are displayed when Phong Tessellation is used on the material and Skinned Motion Vectors are enabled on the GameObject's Skinned Mesh Renderer component
- Shader Graph Enum Keywords always select last element in Entries when Stages is set to Fragment and Recursive Rendering is enabled in the Scene
- [Mac] Glitchy visual artifacts appear when moving around a scene with Sphere Handles
- Crash on memcpy_repmovs when selecting NavMesh Agent objects while in Play Mode in a specific scene
Resolution Note (fix version 2023.1):
PR : https://ono.unity3d.com/unity/unity/pull-request/144152/_/assetdatabase/mainobjectname/fix-extensions-in-names