unityspy icon indicating copy to clipboard operation
unityspy copied to clipboard

Unity 2022.3.10 offsets and/or changes

Open nalka0 opened this issue 1 year ago • 1 comments

This PR contains all the changes I made to make unity spy work on a game using Unity 2022.3.10.

I'm unsure how to create a complete new offset object and would need help with it (I commented the offsets I had to replace with the values I figured out).

There are also some non-offset changes, these probably need some work/testing to make them compatible with all other supported unity versions.

nalka0 avatar Dec 25 '23 21:12 nalka0

So the first step to define a new version is to add a new public static readonly MonoLibraryOffsets declaration in MonoLibraryOffsets.cs. By convention, the variable name has the version name, as well as whether it's for a 32- or 64-bits game. Then you need to fill out all the new offsets. Some of them might have stayed the same, but you'll still have to provide a value for all of them.

Once this is done, you can add it to the List<MonoLibraryOffsets> SupportedVersions in MonoLibraryOffsets.cs.

Normally, these are the only places you should need to modify. If there are other pieces of the code that don't work with that new version, we'll need to investigate more thoroughly. Edit: Also add the new version to the UnityVersions class like you did

sebastientromp avatar Jan 14 '24 10:01 sebastientromp