Page 1 of 1
Missing prefabs in XR interaction example
Posted: Wed Oct 19, 2022 9:30 pm
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
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
Re: Missing prefabs in XR interaction example
Posted: Wed Oct 19, 2022 10:32 pm
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 (58.4 KiB) Viewed 1510 times
Note: I've finished work for the night, but I'll check back first thing in the morning.
Re: Missing prefabs in XR interaction example
Posted: Thu Oct 20, 2022 1:47 am
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
Re: Missing prefabs in XR interaction example
Posted: Thu Oct 20, 2022 7:54 am
by Tony Li
Hmm, maybe they changed the packages' contents. I'll check and get back to you.
Re: Missing prefabs in XR interaction example
Posted: Thu Oct 20, 2022 10:00 am
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.
Re: Missing prefabs in XR interaction example
Posted: Thu Oct 20, 2022 9:38 pm
by esaaaaaam
Great I'll do that, thank you very much
Re: Missing prefabs in XR interaction example
Posted: Thu Oct 20, 2022 9:39 pm
by Tony Li
Glad to help! If you get stuck or have questions, let me know.