Needle Update Broke

Hello,

I tried to update my Needle Version exporter from 3.16.2 to 3.25.2 and my entire scene is broken.
I will share my logs, could somebody can help me to understand ?




Original Post on Discord

by user 224464722878005248

Which Unity verison are you using? Try to get rid of the compiler errors - can you share the scripts that produced those in the codegen directory?

It might just be caused by these two files here
image.png

by user 224464722878005248

It seems that I need to precise the type of each type ?

by user 224464722878005248

I will send you privatly the scripts

by user 224464722878005248

Ok - i would need the typescript files. Did you have codegen for those before the update too?

If not add // @dont-generate-component in a line above the class in typescript

Okay

by user 224464722878005248

Yes, they were generated before the update.
However, I’m going to add the recommended line because I don’t add my components via unity but via other components, so if the codegen only allows you to link unity and the export of my scene, that should be enough if I don’t generate them.

by user 224464722878005248

by user 224464722878005248

Which Unity editor version are you using? Try restart Unity perhaps - we didnt change anything here regarding this script

2022.2.5f1

by user 224464722878005248

Okay it works, thanks for your help

by user 224464722878005248

Great :slightly_smiling_face: perhaps you could also update to a LTS version of Unity at some point (2022.3 in your case)

Okay I will

by user 224464722878005248

Am I getting this right: the core of the issue was that Unity messed up and a Unity restart fixed the problems?

Codegen produced wrong C# code and then unity got messed up due to a compiler error β†’ fixing compiler errors + restart fixed it