How to open the examples correctly?

  1. 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 😊
  2. I created a new Unity project (2021.3.11f1)
  3. I installed the needle package
  4. 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

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.
unknown.png

Your unity manifest.json (in Packages/) would look something like this
unknown.png

those component scripts (like drag control, and so on)

by user 367081956959322114

That would mean that the guid of the scripts has changed - any chance you installed the package twice somehow? :thinking:

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

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

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

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

can you check that the ExportInfo component contains the SampleScripts npmdef?
unknown.png

If not add it to the dependencies array, stop the server, click install and start again