Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Custom Project Template Path Character Limit Error

Discussion in 'Unity Hub' started by suhaibasaadwork, Jul 17, 2023.

  1. suhaibasaadwork

    suhaibasaadwork

    Joined:
    Jan 26, 2021
    Posts:
    1
    I created a custom project template for Unity 2022.3.1 LTS on Windows 10, but when I try to create a project, I get the error "Your project settings will result in a path length that exceeds the character limit. Please shorten the path."

    I tried all Windows 10 methods to fix this such as enabling long file path from registry and group policy but that didn't fix it.

    I'm already trying to create the project into C:/Unity folder to make it the shortest path possible

    anyone know a workaround or a solution to make unity custom project templates work?
     
  2. vincenzodp_

    vincenzodp_

    Joined:
    Sep 25, 2015
    Posts:
    1
    I am encoutering the same issue, I've been using the same path for all of my projects with and without the use of templates, and it never caused any error (using 2021 LTS). Now, with 2022.3.5f1 I am facing this issue but I wouldn't have to use a different location.
    I also tried all the potential external fix (Windows LongPathsEnabled etc.) but it didn't help
     
  3. Temlan

    Temlan

    Joined:
    Oct 25, 2018
    Posts:
    1
    Have you found any solution to this friends?
     
  4. umutsahin4

    umutsahin4

    Joined:
    Jun 30, 2020
    Posts:
    1
    Same issue with 2022.3.12f1
     
  5. Heyder_Ferag

    Heyder_Ferag

    Joined:
    Jul 17, 2023
    Posts:
    1
    Same problem here with 2022.3.11f1
     
  6. jmaoc11

    jmaoc11

    Joined:
    Jan 9, 2023
    Posts:
    1
    Same with 2022.3.12f1
     
  7. NEW_00_0NE

    NEW_00_0NE

    Joined:
    Nov 14, 2015
    Posts:
    3
    Same. It seems like it only happens when trying to create a new project on a drive that isn't my
    C:
    drive (i.e.
    D:\Development\<new_project_name>
    ).

    Also, seems to be when I am creating a project based on a Project Template, specifically the Mixed Reality template.
     
    FarmerInATechStack likes this.
  8. judesidloski

    judesidloski

    Unity Technologies

    Joined:
    May 12, 2022
    Posts:
    46
    Hey everyone!

    What we are doing in hub is recursively checking every path inside the template folder to see if there is any path in the template that is too long. If there are any over 260 characters then you will see this message.

    If you are creating a custom template you need to be wary of the paths inside the template.

    If you are encountering this issue with a unity template and the project name/path is reasonably short then please create a bug report including the template and editor version you are trying to create with.
     
  9. jbat100

    jbat100

    Joined:
    Feb 5, 2016
    Posts:
    4
    For info, got this error, then changed the project name from "My Project" to something without spaces and the error went away