UI in XR content - how accessed

Original Discord Post by etinesaego | 2024-07-10 13:54:19

quick one- if I wanted to change XR rigs and still get the UI to render upon NPC approach, what scripts in the UI and the rig have to be mirgated and vice versa? basically, if the XR rig is modified or changes, the UI doesn’t appear in-game; the canvas outline does appear in play mode. Unity 2022.3.12f1

Reply by k3kalinix | 2024-07-10 14:24:08

Hello <@1101428836916264993>,

Are you able to interact with the NPC?

Reply by etinesaego | 2024-07-10 14:38:40

hi thanks for trying to help. I was able to fix it while using the stock XR rig that comes with the VR kit and adapted it to AR, but it would be nice to know what scripts or settings point to either the Rig or the camera or collider that tells the UI to appear and for the interaction to occur.

Reply by k3kalinix | 2024-07-10 21:45:42

Hello <@1101428836916264993>,

Are you using our AR Demo scene?

Reply by etinesaego | 2024-07-11 09:11:59

hello. no I took the VR demo scene and compared it to a working AR XR rig trying to match scripts across the UI and in the Rig and didnt see much of a difference. As long as I utilized the XR rig from the prefab and upgraded to AR scripts (openxr) i got it to work, but I cant swap out the rig with say an OVR rig

Reply by k3kalinix | 2024-07-11 09:13:28

What is your target platform?

Reply by etinesaego | 2024-07-11 09:16:06

quest 3

Reply by k3kalinix | 2024-07-11 09:16:11

Okay

Reply by k3kalinix | 2024-07-11 09:16:32

Is this a new project?

Reply by etinesaego | 2024-07-11 09:16:48

yah it is but it’s just an AR project with an avatar

Reply by k3kalinix | 2024-07-11 09:17:08

Do you mean MR?

Reply by etinesaego | 2024-07-11 09:17:09

just avatar and QA session between player and NPC

Reply by etinesaego | 2024-07-11 09:17:17

yeah I mean MR

Reply by k3kalinix | 2024-07-11 09:17:22

Okay

Reply by k3kalinix | 2024-07-11 09:18:40

  • Integrate the Meta Quest SDK.
  • Then integrate Convai.
  • Add the Convai Essentials VR prefab to your scene.
  • Add NPCManager and GRPCApi components to your Meta Quest Player.
  • Add the ConvaiHandPanelHolder object to your left hand (you can find it by searching Hiearchy).
  • Remove Convai VR Player.

Reply by etinesaego | 2024-07-11 09:19:28

ok but how do I get to the UI elements ike if i want to change it or attach to another rig? how is it pointing to the rig

Reply by k3kalinix | 2024-07-11 09:20:16

What do you mean?

Reply by k3kalinix | 2024-07-11 09:20:36

if you follow these steps, you will understand the flow.

Reply by etinesaego | 2024-07-11 09:20:39

If i try to use another rig, any other rig than the one packaged with the prefab, the UI doesn’t display

Reply by k3kalinix | 2024-07-11 09:21:16

It means, character isn’t activated.