There is probably something I am doing wrong, but if I import the package into an empty 3D template, on both 21.3.9 and 22.3.17, it causes errors, and the Needle scripts do not work.
In 21.3.9 it constantly causes âCollab service is depricated and has been replaced with PlasticSCMâ, and the âExportInfoâ component of the âExportâ object just does not work.
In 22.3.17 there are no templates in the New Scene menu, the window is just empty, and I can not do anything.
Maybe I am too stupid right now because I am new at Unity, but I will be glad to get some help, thanks!
Hello there â Iâm an AI powered assistant that might be able to help you with your question. Would you like me to try helping you?
How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.
It appears you are encountering issues related to the generation of Needle Engine components in Unity. There are a few steps you can take to control the generation of C# code from TypeScript:
Ensure you are declaring the TypeScript types correctly, as it is important for C# fields to be generated correctly. All fields in your TypeScript scripts should have an explicitly declared type.
If necessary, use @dont-generate-component if you do not want to generate a C# class for a TypeScript component, especially if you want to match an existing Unity script.
Make sure you have a Component Generator on the GameObject with the ExportInfo component. The scripts added in the src/scripts folder of your project should automatically generate Unity scripts in Assets/Needle/Components.codegen.
You donât need an additional component in the scene for each NpmDef file; they automatically handle component generation when you create new scripts.
Regarding the Collaboration service error: Collab has been replaced with Plastic SCM in newer versions of Unity. You should be able to disable Collab in the Unity Services panel if that error keeps showing up.
Lastly, if the New Scene menu is empty in Unity 22.3.17 and you cannot do anything, this might be unrelated to the Needle Engine itself and could be an issue with the Unity Editorâs installation or configuration. You might want to try reinstalling Unity or resetting your editor layout.
Refer to the documentation I found on component generation for further technical details (see the documentation). If this doesnât resolve your issue, please provide more specific error messages or steps to reproduce the problem, and Iâll be glad to assist you further.
1 messages leftGPT 4 thread_kC1kszL6cVjQfytIPz1RjoGJ Thanks for your feedback!
Hi this sounds like the unity project itself has some package errors that are unrelated. What does âJust does not workâ mean exactly? It doesnt load? That would be the case when you have compiler errors like the Collab service error. Can you share the whole error message here?
I couldnât reproduce the error with our Dev projects updating to latest 2022 or using a new 2022.3.19 project with the default project template. I need more information about your project. Could you share your package manifest.json and your Editor.log file?