Unity Narrative Design- using physical inputs instead of triggers/colliders to trigger a section

Original Discord Post by ananya1052 | 2024-08-27 19:55:05

I’m making an Oculus VR app and would like to trigger my character’s narrative design with a physical controller. Having trouble figuring this out.

Reply by k3kalinix | 2024-08-27 19:57:38

Hello <@698987331352264754> :wave:t2:

Reply by k3kalinix | 2024-08-27 20:00:54


if(Input.GetKeyDown(KeyCode.K){
if (TryGetComponent(out NarrativeDesignTrigger narrativeDesignTrigger))
  {
    narrativeDesignTrigger.InvokeSelectedTrigger();
  }
}

Just an example code.

Reply by ananya1052 | 2024-08-27 20:01:26

Got it

Reply by ananya1052 | 2024-08-27 20:02:27

How do I specify the specific section to trigger?

Reply by k3kalinix | 2024-08-27 20:02:55

Add NarrativeDesignTrigger component

Reply by ananya1052 | 2024-08-27 20:03:40

Images:

Reply by ananya1052 | 2024-08-27 20:03:45

It doesn’t let me choose a section

Reply by ananya1052 | 2024-08-27 20:04:19

This image (below) was in the documentation but there is no Trigger dropdown for me to select a section

Images:

Reply by k3kalinix | 2024-08-27 20:05:32

Give ConvaiNPC’s reference

Reply by ananya1052 | 2024-08-27 20:06:39

In the “On Trigger Event” ?

Reply by k3kalinix | 2024-08-27 20:06:45

No

Reply by ananya1052 | 2024-08-27 20:07:00

I added the reference to my NPC in the Convai npc

Reply by k3kalinix | 2024-08-27 20:07:09

ConvaiNPC variable at the top

Reply by k3kalinix | 2024-08-27 20:07:15

Please share a screenshot

Replying to ananya1052’s Message

Reply by ananya1052 | 2024-08-27 20:03:40

Reply by ananya1052 | 2024-08-27 20:07:22

^

Reply by k3kalinix | 2024-08-27 20:07:41

Add NarrativeDesignManager Component

Reply by ananya1052 | 2024-08-27 20:08:12

Hmm that has already been added to my NPC

Reply by k3kalinix | 2024-08-27 20:11:20

Could you please press Check for Updates on the Narrative Design Manager.

Reply by ananya1052 | 2024-08-27 20:17:10

I did- it didn’t change anything though