WebRTC/Screensharing sample is missing a prefab

Hi there! The CurvedScreen Variant prefab is missing from the Screensharing sample. Do you have an updated version I can look at? “Prefab instance problem: CurvedScreen Variant (Missing Prefab with guid: ddc6dadc91a391c439f733ab86fb22b4). 3 instances are missing the same Prefab”

Original Post on Discord

by user 361212563452723200

Hi :wave:
Which Unity version and render pipeline are you on?

I had the same problem when I recently tried importing the prefab. It wouldn’t let me use it because it was ‘immutable’ so i copied it into my main assets folder. Then I could use it but the curvedscreen geometry wasn’t being found. I copied the geometry to my assets as well and replaced the one in the prefab but now when i click it it only shows in the local instance and doesn’t display for other people connecting

by user 563549194137239552

Same question to you then @VRSpatialist : Which Unity version and render pipeline are you on? :smile:

.
Just for context, with our samples we’re trying to do what most of the devs at Unity consider impossible: have scenes and prefabs and assets that are compatible with a wide range of Unity versions and render pipelines.

That mostly works - and we believe we can get it to work 100% - , but sometimes people (as you!) run into combinations that aren’t covered yet or where we run into edge cases. So it’s important for us to know which Unity version + Render pipeline this is happening on so we can look at that particular case.

URP … 2021.3.16f1…mac os x

by user 563549194137239552

2.58.1-pre

by user 563549194137239552

samples were installed via the explore samples window

by user 563549194137239552

working version is on Windows, unity 2021.3.3f1 w NT 2.50.0-pre … welcome window has no explore samples… samples were installed in another project and manually copied

by user 563549194137239552

@herbst🌵 - 2021.3.16f, URP.

by user 361212563452723200

(Pretty sure I’m seeing a pattern here.)

by user 361212563452723200

Thanks for the additional info! I’ll check it out :slightly_smiling_face: not good if it doesn’t work on the latest LTS!

Thanks!

by user 361212563452723200

In the meantime, as a workaround you should always be able to pull the samples repo (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 😊) and open it with 2020.3 LTS (or just add Needle Engine to a 2020.3 project and install the samples package from the samples window)

What might help would be a button in the explore samples window to ‘clone sample to workspace’ or something like that that would copy the sample and all prefabs into your working Assets folder so nothing in it was immutable.

by user 563549194137239552

I’m not sure why copying the prefab though would make the curved component go missing… it should have the same GUID wether it’s in an immutable folder or copied into your project

by user 563549194137239552

Hmm, same issue with the samples in 2020.3. I can get it to work by manually replacing the prefab variants in the scene with the original prefab in the Screensharing/Assets folder. Looks pretty good, actually, so once again: very impressive work on this.

by user 361212563452723200

And webcam input works nicely, too.

by user 361212563452723200