Skip to main content

Unity Typetree to Python Module code generator

Project description

UnityPyTypetreeCodegen

(WIP) Static TypeTree code analysis and code generation for UnityPy

Used in

Usage

Example usage in rla_transport_defines

env = UnityPy.load(...)
from generated.Sekai.Streaming import TransportDefine
from generated import UTTCGen_AsInstance

for reader in filter(lambda x: x.type == ClassIDType.MonoBehaviour, env.objects):
    name = reader.peek_name()
    if name.startswith("TransportDefine"):
        instance = UTTCGen_AsInstance(reader, "Sekai.Streaming.TransportDefine")
        # ...or `instance = UTTCGen_AsInstance(reader)` is `m_Script` field is accessible
        instance : TransportDefine
        print(f'"{name}":({instance.validBones}, {instance.validBlendShapes}),')
        # Possibly modify on the instance itself and saving it is also possible
        instance.validBones[0] = "BadBone"
        instance.save()
env.save()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unitypytypetreecodegen-0.0.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unitypytypetreecodegen-0.0.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file unitypytypetreecodegen-0.0.3.tar.gz.

File metadata

  • Download URL: unitypytypetreecodegen-0.0.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for unitypytypetreecodegen-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5dbe31edbca6e1347274c7b205e29f8d9ccadfa6649a09a279fb43809177f2f8
MD5 7ee7f57e13a06ec532229bf2b61a187c
BLAKE2b-256 d4430e09341e461534a13662f96aae9aac9a950060b0ebe6df50f9409410eaf0

See more details on using hashes here.

File details

Details for the file unitypytypetreecodegen-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for unitypytypetreecodegen-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ef05267ea87f677320735a54df514109522610d1939aa6a5acdd01de644e29
MD5 e5729a2487b136bda7ee8aeb3250fcfc
BLAKE2b-256 8328583168a47a420cf74d45dc4d1c1289aa723b7785e80c405d724aed026acb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page