I cloned GitHub - needle-tools/needle-engine-samples: Live: https://engine.needle.tools/samples 🌵 Needle Engine sample scenes - use as examples and as a reference for learning 😊
I created a new Unity project (2021.3.11f1)
I installed the needle package
Now I want to open a scene from the cloned needle-engine-samples/assets/Runtime
but now the project is missing scripts and won’t compile (or the vite server stops)
Am I missing something?
Original Post on Discord
by user 367081956959322114
or the scene is empty
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
3
What scripts are missing?
When you installed the Needle Engine Exporter package using the installer you can add the samples package via file path in the package manager. The samples package is currently in the assets
folder here.
marcel
(marwi)
October 17, 2022, 12:00am
4
Your unity manifest.json (in Packages/) would look something like this
those component scripts (like drag control, and so on)
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
6
That would mean that the guid of the scripts has changed - any chance you installed the package twice somehow?
No, I started a fresh unity project
by user 367081956959322114
the sample refrencing worked… I can now open them in my pre-setup project. But when I run it the website scene is empty
by user 367081956959322114
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
10
Yes because you have shader errors. Can you show this window?
ok I don’t have URP… but why I could run the Sandbox example?
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
12
Because it uses the Unity PBRGraph shader which supports both builtin as well as URP
how did you notice that? the pink material or the log on the console?
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
14
The pink material is usually a pretty good tell ^^
hehe ok now I noticed, when I changed to URP
by user 367081956959322114
the scene is still empty
by user 367081956959322114
NOW finally ^^
had to pick a new location for the project and regenerated it… now it works
by user 367081956959322114
but it looks like this… the materials doesn’t react to the collision states.
by user 367081956959322114
marcel
(marwi)
October 17, 2022, 12:00am
19
can you check that the ExportInfo component contains the SampleScripts npmdef?
marcel
(marwi)
October 17, 2022, 12:00am
20
If not add it to the dependencies array, stop the server, click install and start again