JohannesDeml / unity-guid-resolver

Resolve guids to their asset names on the web
MIT License
7 stars 1 forks source link

I created a program that can generate mapping Json files outside of the Editor. #1

Open NekoShatoo opened 6 months ago

NekoShatoo commented 6 months ago

Because the Editor is not running all the time, generating it through an external program can effectively reduce the time needed to open the project.

JohannesDeml commented 6 months ago

Hi @NekoShatoo,

thanks a lot for your contribution! I think supporting the generation of the mapping file outside of unity is a nice idea, however I would offer it as an additional possibility instead of the only possibility, since this requires to have .NET installed or we would need to offer downloads of the executables for Windows, Mac and Linux (I would not want to have the binary builds checked in).

I will do a code review later today, one question that popped into my head right away: How long does it take to generate the mapping file with the standalone program compared to the unity script I provided (In the script I simply log it with a StopWatch, which should be sufficient to compare them)?

NekoShatoo commented 6 months ago

By the way, this has been successfully tested on Unity 2022. It's possible that other Unity versions might have different database versions…