Page 1 of 1
3D Triggers not working
Posted: Tue Jul 11, 2023 11:08 am
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!
Re: 3D Triggers not working
Posted: Tue Jul 11, 2023 2:43 pm
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.
Re: 3D Triggers not working
Posted: Tue Jul 11, 2023 3:06 pm
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.
Re: 3D Triggers not working
Posted: Tue Jul 11, 2023 3:41 pm
by Tony Li
Glad to help!