Skip to content

MonoBehavior TypeTree resolution regression #354

@mos9527

Description

@mos9527

f6b4ef8 now demands a TypeTreeGeneratorAPI instance to be set, whether check_read is enabled or not.

Reading partial MonoBehavior structs (without extra serialized fields) was allowed in previous versions where check_read=False, where one can expect the following snippet to work with a typetree-stripped bundle:

if reader.type == UnityPy.enums.ClassIDType.MonoBehaviour:
    mono = reader.read(check_read=False)
    # Resolve m_Name, m_Script, etc
    ...

This is now (1.24.0+) impossible, and because of this, peek_name() would also fail without a generator set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions