This is something that appears to apply to all Unity games, or at least all the Unity games I've played. If I use dnSpy to look at the Assembly-CSharp.dll and change variable values, such as making "public float height = 1f;" instead be "public float height = 20f;", the game still behaves like the value is 1 and not 20. The only workaround I have found is to change the actual code to get the desired result. Using hex editing I'm able to change out token ids meaning I can switch variables and methods for different ones. This of course is a lot harder because you are limited to how you can change it. You can use dnSpy to add or subtract code, but that requires recompiling the dll. To distribute the mods, you would have to distribute modded game files. I would prefer to be able to distribute a small program that hex edits the game instead of giving out game files. Hex edits can often last several updates if that code is never changed.
Any idea on why editing variable values doesn't seem to have any affect on the game? My only guess is due to prefabs or something being used the variable is already stored in other locations.
Any idea on why editing variable values doesn't seem to have any affect on the game? My only guess is due to prefabs or something being used the variable is already stored in other locations.