Problem with DialogueSystemTrigger (barks)
Posted: Wed Feb 06, 2019 2:31 pm
Hello,
I'm using the Dialogue System in version: 2.1.1
My version Unity is 2018.3.4f1
Currently, I'm on this tutorial (2min 55 sec video):
I have exactly the same how it is in the tutorial.
When I walk into the Trigger, "hello" not appear. I get a warning in console: "Dialogue System: Dialogue System Trigger is set to a mode that requires a collider, but it has no collider component". - Player Character has Rigidbody2D with dynamic and box collider2D with IsTrigger = false. This Box1 has BoxCollider2D with IsTrigger = true (I expanded trigger zone of course).
Next I wrote a test script with only OnTriggerEnter and I put this one on Box1 - It worked perfectly.
So I started google it and I found that there is a problem with #if:
In DialogueSystemTrigger in 373 and 475 line there is a problem with #if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER the code under that is grey (comment without //). Ok I get it that my Unity version is higher but why USE_PHYSICS2D didnt work?
When I change to #if USE_PHYSICS2D || UNITY_2018_1_OR_NEWER or #!if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER the whole problem disappears and it work perfectly but this is a good solution? Is there any other solution? I don't want to interfere in asset code.
I'm using the Dialogue System in version: 2.1.1
My version Unity is 2018.3.4f1
Currently, I'm on this tutorial (2min 55 sec video):
I have exactly the same how it is in the tutorial.
When I walk into the Trigger, "hello" not appear. I get a warning in console: "Dialogue System: Dialogue System Trigger is set to a mode that requires a collider, but it has no collider component". - Player Character has Rigidbody2D with dynamic and box collider2D with IsTrigger = false. This Box1 has BoxCollider2D with IsTrigger = true (I expanded trigger zone of course).
Next I wrote a test script with only OnTriggerEnter and I put this one on Box1 - It worked perfectly.
So I started google it and I found that there is a problem with #if:
In DialogueSystemTrigger in 373 and 475 line there is a problem with #if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER the code under that is grey (comment without //). Ok I get it that my Unity version is higher but why USE_PHYSICS2D didnt work?
When I change to #if USE_PHYSICS2D || UNITY_2018_1_OR_NEWER or #!if USE_PHYSICS2D || !UNITY_2018_1_OR_NEWER the whole problem disappears and it work perfectly but this is a good solution? Is there any other solution? I don't want to interfere in asset code.