Hi, I just recently bought this asset BUT it seems the dialogue system trigger and proximity selector cannot detect my 2D colliders I even tried following the tutorial again (https://www.pixelcrushers.com/dialogue_ ... ction.html)
And dialogue system trigger cannot read or find my 2d colliders it's saying
Dialogue System Trigger is Set to a mode that requires a collider, but it has no collider component
Proximity selector also has this type of problem.
This only happens in 2D but when I do it in 3D colliders it works fine.
Dialogue System cannot find my 2D colliders
-
- Posts: 15
- Joined: Wed Nov 07, 2018 10:27 pm
-
- Posts: 15
- Joined: Wed Nov 07, 2018 10:27 pm
Re: Dialogue System cannot find my 2D colliders
I managed to make it work by removing this #if statement
//#if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER
My programming knowledge is not advance but is the reason for that is that it should(?) auto detect whether I am using a Physics2D component not 3D?
My only workaround is to remove all that line: #if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER to all the scripts that I will use.
Is there another workaround where I don't have to manipulate or edit the scripts?
//#if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER
My programming knowledge is not advance but is the reason for that is that it should(?) auto detect whether I am using a Physics2D component not 3D?
My only workaround is to remove all that line: #if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER to all the scripts that I will use.
Is there another workaround where I don't have to manipulate or edit the scripts?
Re: Dialogue System cannot find my 2D colliders
Hi,
Select menu item Tools → Pixel Crushers → Common → Misc → Enable Physics2D Support....
More details: Enable Physics2D Support in Unity 2018+
Select menu item Tools → Pixel Crushers → Common → Misc → Enable Physics2D Support....
More details: Enable Physics2D Support in Unity 2018+
I hated to have to add this extra step, but Unity 2018's new package manager made it a necessity. The Enable Physics2D Support in Unity 2018+ link is peppered throughout the online manual, but if you have any suggestions about other places where the link would be helpful, please let me know. I'd like to make it as easy to find as possible. Thanks!The Dialogue System supports 2D physics as well as 3D physics. In Unity 2018+, the 2D physics package (Physics2D) can be enabled or disabled, so the Dialogue System's code for Unity 2018+ doesn't assume that Physics2D is available in your project. To tell the Dialogue System that Physics2D is available if you’re using Unity 2018+, select menu item Tools → Pixel Crushers → Common → Misc → Enable Physics2D Support.... If you're using Unity 2017 or older, this menu item will not be visible.
If you want to enable Physic2D support manually instead, select menu item Edit → Settings → Player, add the scripting symbol USE_PHYSICS2D as shown below:
If you’re using Unity 2017 or older, you can skip this step.
-
- Posts: 15
- Joined: Wed Nov 07, 2018 10:27 pm
Re: Dialogue System cannot find my 2D colliders
Thank you very much for the reply.
As for the suggestion: I suggest you include the step of enabling physics2D support in the interaction tutorial:
https://www.pixelcrushers.com/dialogue_ ... ction.html
This is usually the first thing new users like me will look at in my opinion. So I believe it should emphasize that crucial step.
As for the suggestion: I suggest you include the step of enabling physics2D support in the interaction tutorial:
https://www.pixelcrushers.com/dialogue_ ... ction.html
This is usually the first thing new users like me will look at in my opinion. So I believe it should emphasize that crucial step.
Re: Dialogue System cannot find my 2D colliders
Excellent suggestion. Thank you! It'll be there in the next push of the documentation.