Package: typetree-unity
typetree_unityA standalone type tree generator for Unity assemblies.Better README coming in the future. Still in early development. Things will be changing rapidly.Ultimate goal of this project is to provide lighter weight and more easily accessible options for data mining Unity games, and provide outputs in easily transportable formats.There are two required parameters to generate a type tree:Unity build versionGame assembly files built with MonoUnity build versionThe quickest way to determine which version of Unity a game is built against is to open one of the.assetsfiles in the game's directory (typically located at[game_root]/[game]_Data/) in Notepad (pick a small assets file, any will work). One of the first ASCII text will be the version (ex. 2019.4.23f1). For a scripted approach, seeUnityVersionFinderPy.Game assembly files built with MonoTo determine if a game is already built with Mono, look in the game directory for aAssembly-CSharp.dllfile (typically located at[game_root]/[game]_Data/Managed). If it does, then the game's assembly files were built with Mono.If that's not the case, the game was likely built with il2cpp (will instead have aGameAssembly.dllfile). To convert from il2cpp to Mono format, seeIl2CppDumper.Install:pip install typtree_unityCLI Usage:usage: python -m typetree_unity [-h] [-c [...]] [-d] [-n] [-o] [-v] assembly_folder unity_version

Generates type trees from Unity assemblies and outputs in JSON format.

positional arguments:
  assembly_folder       folder containing assemblies (game's DLL files)
  unity_version         Unity build version

options:
  -h, --help            show this help message and exit
  -c [ ...], --classes [ ...]
                        classes to dump for the type tree (all if unspecified). Automatically dumps class dependencies.
  -d, --debug           enable debug output
  -n, --namesonly       only output class names (will output as classnames.json if output is not specified)
  -o , --output         type tree output file (default: [script_directory]\output\typetree.json). Supports relative paths.
  -v, --version         version of this packageLibrary Usage:Seetypetree_unity/__main__.pyfor example usage of thetypetree_unitymodule.MIT LicenseCopyright (c) 2021 Jason RobinsonPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.