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)

  1. 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.

  2. Tortuap

    Sep 23, 2022 09:45

    This also happens when renaming Scriptable object assets (both asset & meta files) outside Unity, then refreshing under Unity.

  3. 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".

  4. 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

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.