Dialog System trigger alert

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Dialog System trigger alert

Post by vectorfrog »

Hello,

I'm working on trying to get a trigger to show a dialog system alert, but I can't seem to get it to work. I have a game object that consists of a box collider set to be a trigger and the dialog system trigger component with the Trigger set to On Trigger Enter. The Action is set to Show Alert.

I have the accepted tags set to Player but it doesn't appear to be working. I'm not getting an alert from Dialog System.

I'm sure I missed something. Thanks for the help!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog System trigger alert

Post by Tony Li »

Hi,

Make sure your player is tagged 'Player', has a collider, and is on a layer that will register collisions with the trigger collider's GameObject.

If that checks out but you still don't see an alert, check for warnings or error messages in the Console window.
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Re: Dialog System trigger alert

Post by vectorfrog »

Yes, that all checks out, and there is no errors in the console. If I add a useable component, then the selector shows, but that is not what I need.
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Re: Dialog System trigger alert

Post by vectorfrog »

Geez, right after I posted that I found the problem. I always forget to check the actual collider on my player game object. I have it set to something besides Player. Once I add that tag to the DS trigger, it works as intended. Thank you!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog System trigger alert

Post by Tony Li »

Thanks for the update. I'm glad it's working now. :-)
Post Reply