Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question unity meta file inconsistent casing renaming script

Discussion in 'Scripting' started by Thimo_, Sep 18, 2020.

  1. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
    warning.png Hello,

    I have renamed two scripts in visual studio and since then this same warning appears/ executes when I clone my project from git.

    Both of my scripts get renamed to their old name in the Unity project but they keep their new name in visual studio causing my scenes to give errors.
    old name.PNG
    new name.PNG

    I currently don't have the warning because it doesn't show up every time but it goes something like: 'unity meta file inconsistent casing renaming GameObjectRaycastBehaviour to GameObjectRaycastbehaviour'

    I already tried to delete the meta files and then rename the scripts and I completely removed the scripts and added them back again but both didn't work.

    I also don't know if this is the right location to post this question so i'm sorry if I should've posted this in another subforum.

    Does someone know a solution to stop this automatic renaming that is done by Unity (Using Unity 2020 1.3f)?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,960
  3. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
  4. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,960
    I use the command line.