DaZombieKiller / TypeTreeTools

Export type tree information straight from the Unity editor. Superceded by https://github.com/DaZombieKiller/TypeTreeDumper
MIT License
8 stars 4 forks source link

Added support for Unity 2018 #9

Closed spacehamster closed 4 years ago

spacehamster commented 4 years ago

I'm not sure why the TypeTreeIterator is needed, I think it would be cleaner to use the 2018 style TypeTree dumping methods for newer versions of unity as well, but I left it in, in case it was important.

Newtonsoft doesn't work with 2018.2 and lower, but I don't think a full JSON library is actually needed.

DaZombieKiller commented 4 years ago

Newtonsoft doesn't work with 2018.2 and lower, but I don't think a full JSON library is actually needed.

Yeah. I only pulled it in as a dependency so I could quickly dump some json, so I'm fine with it being removed.

I'm not sure why the TypeTreeIterator is needed, I think it would be cleaner to use the 2018 style TypeTree dumping methods for newer versions of unity as well, but I left it in, in case it was important.

TypeTreeIterator was used to ensure that accessing the data was safe, because depending on the editor version, TypeTreeNode can have a different size and layout. As long as TypeTreeNode is kept up to date, then it should be safe to abandon TypeTreeIterator.