Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,894
  3. Thimo_

    Thimo_

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

    PraetorBlue

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