-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
For huge .unity scene files, the parser is prohibitively slow to even load the document. I ended up rolling my own file scanner using mmap instead.
My use case was scanning values for certain strings, finding the relevant GameObject, and then following the Transform parent chain to get the positions and the names of all the associated GameObjects for more context on where the item is. (I'd have liked the absolute world position for the original GameObject, but with rotations in the mix that's more quaternion math than I wanted to deal with.)
(Pro-tip: at least for my scenes, the fileIDs in the headers can be binary searched, since after the first 3 Settings objects, the entries are defined in order of fileID.)
Metadata
Metadata
Assignees
Labels
No labels