Skip to content

Prepend monobehaviour base fields to generated typetrees #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 11, 2025

Conversation

jakobhellermann
Copy link
Contributor

Complementary PR to UnityPy-Org/TypeTreeGeneratorAPI#4

This should make all backends usable, whereas previously only the AssetStudio backend would include monobehaviour base fields.

Now, the generator generates only the script fields, and UnityPy prepends the fields.

Needs a version bump of the generator when that is released.

@@ -60,6 +60,7 @@ def get_nodes_up(self, assembly: str, fullname: str) -> TypeTreeNode:
0,
0,
m_MetaFlag=base_root.m_MetaFlag,
m_Children=base_node.m_Children[:],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to say if a copy is really necessary.

@K0lb3
Copy link
Owner

K0lb3 commented Aug 8, 2025

I will merge this PR today or tomorrow, after I push the generator update as new version, so that the changes here include the updated generator version as minimal dependency version.

@K0lb3 K0lb3 merged commit aaacbd8 into K0lb3:master Aug 11, 2025
@jakobhellermann jakobhellermann deleted the monobehaviour-base-generator branch August 11, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants