3D Triggers not working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ashulgach
Posts: 2
Joined: Tue Jul 11, 2023 10:56 am

3D Triggers not working

Post by ashulgach »

I'm following the quick start tutorial but using 3D triggers instead. I have the scripts attached and physics layers properly colliding, but it's still not triggering. If I use the "On Start" or "On Trigger Enter" it detects and triggers the conversation, but when I attempt to have the proximity selector running it doesn't detect anything. I'd love some ideas on how to fix this! Attached are all the screenshots. Thank you!
Attachments
PlayerComponents.png
PlayerComponents.png (61.54 KiB) Viewed 148 times
NPCComponents1.png
NPCComponents1.png (92.26 KiB) Viewed 148 times
NPCComponents2.png
NPCComponents2.png (110.73 KiB) Viewed 148 times
NPCComponents3.png
NPCComponents3.png (67.78 KiB) Viewed 148 times
Collisionlayers.png
Collisionlayers.png (48.93 KiB) Viewed 148 times
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3D Triggers not working

Post by Tony Li »

Hi,

Put these components on the Player:
  • Some kind of collider*
  • Rigidbody (can be kinematic)
  • Proximity Selector
  • Selector Use Standard UI Elements
Put these components on the NPC:
  • Some kind of collider*
  • Rigidbody (can be kinematic)
  • Usable
  • Dialogue System Trigger
  • Do NOT add a Proximity Selector or Selector Use Standard UI Elements
*On either the Player or NPC, add a trigger collider. It can also have a regular, non-trigger collider, but the trigger collider should be bigger. The other GameObject should have a regular, non-trigger collider.
ashulgach
Posts: 2
Joined: Tue Jul 11, 2023 10:56 am

Re: 3D Triggers not working

Post by ashulgach »

Ah! That was it! It was adding the Proximity Selector to the PLAYER and not the NPC. That was the only thing I was missing. Thank you! That wasn't super clear in the video.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3D Triggers not working

Post by Tony Li »

Glad to help!
Post Reply