Skip to content

Async version needed #78

@mycroftjr

Description

@mycroftjr

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions