C-sharp component not being generated

if you edit the ts file and Unity tried to re-generate it - does it work? Or not?

E.g. add a new field or remove it :slightly_smiling_face:

or rename the class

Yes that works

by user 285903863339548673

I’ve also tried adding a new script but it doesn’t generate

by user 285903863339548673

:thinking: ok that’s strange. did you also try with the npmdef?

i.e. TestScript.ts doesn’t generate

by user 285903863339548673

I’ll try that, just reading the reference for that to get my head around

by user 285903863339548673

It also contains a class (e.g. export class MyClass extends Behaviour ? )

Yeah exact same contents as the original Rotate.ts

by user 285903863339548673

Ok - of course the classname shouldnt be the same :sweat_smile:

of course :TrippyBlob:

by user 285903863339548673

No luck with using npmdef :I

by user 285903863339548673

Ok good :slightly_smiling_face:

I mean then its at least consistent :slightly_smiling_face:

Oh ok - fair enough

by user 285903863339548673

also have this issue on Windows and Mac, what can i do?

by user 353918275215818754

@marcel :cactus: i tried your command and after this c# script generated
but new scripts dont generate

by user 353918275215818754

What is the path of your project? Can you share the compiler log file too? You can also use Help/Needle Engine/Collect logs and PM me the zip

Which node version are you using?