Hi, Unity dev here trying to wrap my head around Needle!
I am just trying to make my first component now but they don’t seem to be automatically generated in the Unity project for me?
I am following the documentation: Needle Engine Scripting | Needle Engine Documentation
In “Creating a new Component” it says to create a new .ts file in “src/scripts/” of your generated project directory, which I did. Then I put in the example content for “Rotate.ts.”
After saving nothing gets automatically generated in Unity.
I also noticed in the Documentation that generated scripts should appear in “Assets/Needle/Components.codegen.” In my Asset folder there is no Needle folder. This folder (together with the folder of the generated needle project) is one above that in the folder hierarchy. So on the same level as Assets. Just wanted to check if that is correct?
Original Post on Discord
by user 215030049034731520
Hey, can you try toggling the ComponentGenerator component on and off and then saving your script again?
You should get a log in the console when the change is detected
ohhhhh
by user 215030049034731520
okay sorry i think i should have taken a closer look on the setup of the example scene
by user 215030049034731520
i missed putting that on the exporter
by user 215030049034731520
So you created the scene completely manually?
yes
by user 215030049034731520
i just tried to follow the steps for setup
by user 215030049034731520
to try to understand all the pieces better
by user 215030049034731520
okay thank you it worked now!
by user 215030049034731520
i guess just a small feedback
by user 215030049034731520
by user 215030049034731520
i dont think i saw the Component Generator mentioned anywhere
by user 215030049034731520
but maybe i just missed it!
by user 215030049034731520
I think you’re right, thanks for the feedback