Dialog-system not detecting 2D colliders despite activating 2D.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Hulda_Gnodima
Posts: 19
Joined: Fri Jan 17, 2020 9:04 am

Dialog-system not detecting 2D colliders despite activating 2D.

Post by Hulda_Gnodima »

Hello!

My dialog-system is not reacting to 2D-colliders (despite me having pressed "Enable Physics 2D-support"). Im using Unity-version 2019.2.18f1 and I followed the Quick-Setup tutorial of the asset to make sure I did everything correctly.

You can see how the dialog is "misbehaving" here, detecting 3D-colliders but not 2D-colliders.


And here's an image of me having pressed the "Enable Physics 2D-support". I pressed it once and now it's grayed (I can't press it again) out so I've guessing it means that it's activated.


I found this forum-post from 2019 with a similar problem, but as I've already pressed "Enable Physics 2D-support" the suggestions there don't fix my problem: https://www.pixelcrushers.com/phpbb/vie ... php?t=2203

Thank you so much for the help in advance!
Gnodima
User avatar
Hulda_Gnodima
Posts: 19
Joined: Fri Jan 17, 2020 9:04 am

Re: Dialog-system not detecting 2D colliders despite activating 2D.

Post by Hulda_Gnodima »

I figured it out!
On the selector-script (that you put on the "Player" in the Quick-Set up tutorial) the Raycast-option has to be put to "in 2D" like so:



That fixed it for me :)!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog-system not detecting 2D colliders despite activating 2D.

Post by Tony Li »

Glad you got it working! :-)
User avatar
Hulda_Gnodima
Posts: 19
Joined: Fri Jan 17, 2020 9:04 am

Re: Dialog-system not detecting 2D colliders despite activating 2D.

Post by Hulda_Gnodima »

Thank you, and thank you for making this amazing asset! :)
Post Reply