To me, that sounds archaic. It sounds like having to have all sources in a folder named trunk
for reasons that befuddle any programmer who hasn’t already been doing corporate software development with source control back in the 80s. We should be fortunate that this forced, rigid structure in source control is a thing of the past!
There’s no improvement in enforcing an arbitrary folder structure. No one structure fits all. Plus the src
folder is meant to only contain source code, not assets nor anything else but code and config / make files - certainly not entire Unity projects. You’re trying to enforce an architecture, a workflow onto something to which it is simply not applicable and therefore it’s not surprising that following this discipline is making your life harder with 10 projects named src
for no good reason other than wrongfully applied tradition.
But rather than adapt and go with the time, and perhaps maintain an Assets/src
folder for your scripts for purely aesthetic and emotional reasons, you request that everyone should adhere to arbitrary nomenclature.
Try to view it from the position of someone who has always had the liberty of naming things the way we like in source control, and you’ll find it hard to argue why enforcing src
(or: doc
, lib
, bin
, inc
, obj
, dep
, db
, test
) helps with anything.
Also worth noting is that these short names originate in days past where typing time was still an important factor (no autocomplete!), a time when programmers were quite proud of distinguising themselves as l33t by usng obscr and clvr abrrvtns, where each character represented a precious resource on disk (one or even two bytes per character!), and where filenames were restricted to 8+3 characters by the OS, not to mention the maximum length of a path which was as little as 80 bytes (early FAT16 I think, but more commonly yet still restrictive to this day around 240-260 characters depending on OS and use case).
I agree it’s annoying that you have to manually re-add a project after renaming its root folder. On the other hand, how often do we actually need to rename a project in the first place? I do it maybe once when Unity 2022 HDRP Test
has eventually grown into an actual project. I can live with that, no biggie.
Still, I’d applaud the ability to rename a project folder from the Hub but there may be good reasons (source control!) not to allow that.