JohannesDeml / unity-guid-resolver

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

Search and display the references corresponding to the FileID. #2

Open NekoShatoo opened 8 months ago

NekoShatoo commented 8 months ago

The FileID can be changed to the corresponding reference's m_Name value, and a jump function can be added.

image
JohannesDeml commented 8 months ago

Interesting idea, this could help read the content of prefabs more easily. I'm wondering if that would be feasible for larger projects (The number of file IDs in the whole project will be a lot higher than the number of GUIDs).

Do you mostly have prefabs in mind here, or is this also useful for other asset types?

NekoShatoo commented 8 months ago

The FileID is the local (subset) ID of a particular serialized file. How about at least linking the local FileIDs? (For example, within the same scene/same Prefab) By the way, in my screenshot, it's a scene file, which is similar to the format of a prefab.

NekoShatoo commented 8 months ago

The fileID is the local partial ID of the current file. In theory, it should be fine to just tally them while reading a serialized file... As for the fileIDs of external other guid files referenced, then go find that file and tally the FileIDs inside it (kind of like lazy loading).

JohannesDeml commented 8 months ago

Ah, so you don't want to create a mapping file beforehand, but just let the browser extension do it? That sounds like a good idea. The only problem I could see, is if only parts of the code are loaded in the dom (which I think some of the websites do to save performance).