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

Resources Filenames

Discussion in 'Editor & General Support' started by dustinbahr, Feb 23, 2016.

  1. dustinbahr

    dustinbahr

    Joined:
    Sep 10, 2012
    Posts:
    57
    The filenames showing in Unity 5 are sometimes different than the filenames shown in finder. This behavior was not happening in Unity 4.

    Can this be corrected? Is there a workaround?

    Here is an example, this filename in finder is 2 characters long, in Unity the name is 3 characters long.

    Screen Shot 2016-02-23 at 11.57.02 AM.png

    This is a problem because I have code that is loading these files by name.
     
  2. dustinbahr

    dustinbahr

    Joined:
    Sep 10, 2012
    Posts:
    57
    I was able to solve this by normalizing the filename string.

    Code (CSharp):
    1. filename.Normalize(NormalizationForm.FormD);