ConvaiNPC does not trigger dialogue in VR

I’m currently trying to get a basic ConvaiNPC working in a VR environment using Unity 2022.3.22 and Oculus Quest 2. I created a completely empty prefab and added only the following components:

  • ConvaiNPC script
  • Capsule Collider ( two colliders on the same object – one with Is Trigger enabled, and one with it disabled)
  • Audio Source
  • No other scripts (I do not require animations)

I’m using Convai VR for the setup, and deploying to Oculus Quest 2.

When I run the app in VR, the character appears, but no dialogue UI appears, and I’m not able to start a conversation with the NPC. I expected this minimal setup to be sufficient to enable voice interaction, but nothing happens. There are no clear errors in the console either.

It seems like this should work out-of-the-box based on the documentation, but I may be missing something critical. Is there any additional component or setup required for the dialogue system to be triggered in VR?

I’d appreciate it if anyone who has a similar VR setup or has gotten this to work could provide insight.

Thanks!

Hello @KW_XRLAB,

Welcome to the Convai Developer Forum!

Thank you for explaining your setup in such detail.

To begin troubleshooting, I recommend not starting with Oculus just yet. Instead, test the setup directly in the Unity Editor first:

  1. Play the scene in the Editor.
  2. In the Scene view, manually move your Player object in front of the NPC.
  3. Check if the UI appears and if the NPC responds.
  4. If it still doesn’t work, please check the Console for any warnings or errors, and share them with us if possible.

This will help isolate whether the issue is VR-specific or related to the overall setup. Let us know what you observe!

I already have VR setup so I can’t do anything in the play window unless I connect Oculus. I don’t know how to test in Unity editor. Could you help me?

Disconnect your VR device and play the scene.

I’ve already tried it. But the UI window didn’t show up.

Could you please share a screen recording? Make sure your console logs are showing. Also show your components in ConvaiNPC.

Could you please show me the size of your collider?

this it the size of the triggered collider


Could you please show me this?

This is a collider with no trigger applied. I set it small so that it doesn’t touch it because when I hit it, the user bounces off.

In ConvaiNPCManager.cs,

Could you please update the Awake Method like this?

 private void Awake()
 {
     // Singleton pattern to ensure only one instance exists
     if (Instance == null)
         Instance = this;
     else
         Destroy(gameObject);

     _mainCamera = Camera.main;

     Debug.Log("Main Camera:" + _mainCamera.gameObject.name);
 }

Then please show the log.

Please show me the Main Camera object.

That’s the only main camera

Can i see the components?