Search Unity

Accent characters generated by Unity don't match characters of file name

Discussion in 'Editor & General Support' started by jlhacode, Sep 18, 2020.

  1. jlhacode

    jlhacode

    Joined:
    Feb 20, 2020
    Posts:
    13
    ù ù

    These two characters look the same right? They're not. I noticed the difference because it takes two backspace keystrokes to get rid of the character on the left.

    Here they are respectively:

    u.png

    This causes a problem for me: when I import my files by dragging them to the Project panel in Unity, I'll end up with accented characters in the format on the left, which makes everything kind of... break. I can't retrieve my assets from resource folders/addressables at runtime, because the characters don't match.

    Everything works great if I open the file location and drag my assets into the Finder (instead of the project panel in Unity). It's a little inconvenient, but I've learned to live with it. So I thought I got past this problem, but it caught up to me when attempting to retrieve Addressables on Android/iOS builds. I'm guessing the platform dependent build-generated addresses are using compound unicode characters instead of consolidated ones.

    FWIW, I'm running Unity 2020.1.4f1on macOS 10.15.6