Missing prefabs in XR interaction example

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
esaaaaaam
Posts: 3
Joined: Wed Oct 19, 2022 9:04 pm

Missing prefabs in XR interaction example

Post by esaaaaaam »

So I'm trying to use the XR interaction toolkit example from the extras to see how everything is setup but I have missing prefabs in the example scene
Image
I have the full version of dialogue system and the XR interaction toolkit example with its requirements installed and I'm wondering if there is something else I should do.
I'm using unity 2021.3.5f1
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing prefabs in XR interaction example

Post by Tony Li »

Hi,

Did you try installing all of these packages?

- Input System
- Oculus XR Plugin
- Universal RP (optional)
- Windows XR Plugin
- XR Interaction Toolkit (preview)
- XR Plugin Management

Try installing the Universal RP package even though the README says (optional).

Does your project have an "XR Interaction Manager" prefab in Assets / VR Examples > Prefabs?

xrInteraction.png
xrInteraction.png (58.4 KiB) Viewed 1506 times

Note: I've finished work for the night, but I'll check back first thing in the morning.
esaaaaaam
Posts: 3
Joined: Wed Oct 19, 2022 9:04 pm

Re: Missing prefabs in XR interaction example

Post by esaaaaaam »

Thanks for the reply, I double checked and made sure to import everything including any extra samples but the whole VR Exmaples folder is not there
Also windows XR plugin was removed since 2021.2 but I tried it in an earlier version and still didn't work
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing prefabs in XR interaction example

Post by Tony Li »

Hmm, maybe they changed the packages' contents. I'll check and get back to you.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing prefabs in XR interaction example

Post by Tony Li »

Hi,

Yes, Unity definitely changed some example content in the packages. Please try removing those two missing prefabs from your scene. Then select menu item GameObject > XR > Interaction Manager.

When you play the scene, you'll also get a warning "XRRig has been deprecated. Use the XROrigin component instead." You can replace it if you want.

I'll put together an updated example scene as soon as I can. In the meantime, there's not much that's unique to the example. There's just one script: MoveDialoguePanel. To set up your own scene:

1. Change the Dialogue Manager's Canvas to Screen Space - Camera, and add a Tracked Device Graphic Raycaster.
2. Add the MoveDialoguePanel script to NPCs that you can talk with.

See the setup on the example scene's Dialogue Manager GameObject and Private Hart GameObject to examine how they're set up.
esaaaaaam
Posts: 3
Joined: Wed Oct 19, 2022 9:04 pm

Re: Missing prefabs in XR interaction example

Post by esaaaaaam »

Great I'll do that, thank you very much
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing prefabs in XR interaction example

Post by Tony Li »

Glad to help! If you get stuck or have questions, let me know.
Post Reply