Unity narrative design trigger issues with vr player

I have an object that when picked up by the player it should activate a trigger for the NPC to begin speaking, i have attached the Narrative design trigger script, do i need to select a funtion to make it work?

Hi, by looking at that it looks like there isn’t an actual function/method specified in the On Trigger Event at the bottom of the image? Where it says “No Function” I think there should be a method or function that is in your script.

yes i think so aswell but i dont know which function it should be

Hi Rob, without being able to see the functions in your script I can’t really say what should be there.

What do you want to happen when the Narrative Design trigger is invoked? This should be the function that should be specified there.

Hello @robrobbo151,

Welcome to the Convai Developer Forum!

Here’s a clearer explanation of how to get your object to activate a Narrative Design Trigger when picked up:

The NarrativeDesignTrigger script is designed to work with collider events. Specifically, it triggers when the player enters a collider marked as a trigger. However, based on your setup, it sounds like you’re not using a trigger collider for activation.

Instead of modifying the Convai scripts directly (which we don’t recommend), you can create a small custom script to trigger the narrative sequence programmatically:

  1. In the Unity Editor, go to your NarrativeDesignTrigger GameObject and click the Update Triggers button.
  2. Choose the desired trigger you want to activate.
  3. Create a new C# script and attach it to the same GameObject.
  4. For example, In your script’s Awake() method, add the following:
void Awake()
{
    GetComponent<NarrativeDesignTrigger>().InvokeSelectedTrigger();
}

This will manually invoke the selected Narrative Design trigger when the object is initialized.

Also, if you’re not using the trigger collider anymore, be sure to disable it to avoid accidental triggering when the player walks through the object. This should help avoid any unexpected behavior or bugs. :smiley:

Let me know if you need a code snippet or further help!

1 Like

i have “is trigger” active on my mesh colliders but they dont seem to activate the triggers, im having the same issue with triggers activating when the ai walks to a location. i have attatched colliders, design trigger components.

i want my NPC to move to a location and activate a trigger attached to a box collider. the trigger doesnt activate


Any ideas? i feel like ive tried every function?

Please watch this video and do not disable your trigger in OnTriggerEvent.

ive watched the video and done everything it says and it doesnt work. this is the current set up on my trigger and it isnt activating the Special mark trigger in my narrative design

Could you please share a video? (make sure console logs are visible)

Apologies but i cant screen record it whilst testing it on my VR. i ran it and this is the console. he walks to the trigger, it acknowlegdes it but doesnt activate it in my narrative design.


Could you please share all the logs?

how do i do that sorry

You can access the Editor logs from the console window. To do this, open a Console Window (main menu: Window > General > Console) and select Open Editor Log from the Console window menu.

File size is too big to share

Clean everything up, test the scene and then share the logs.

Editor.log (4.6 MB)

Thank you. Which trigger doesn’t work?