Dialog trees and new input system.

NodeCanvas Forums General Discussion Dialog trees and new input system.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17192
    Kenny
    Participant

    Hello. Dialog trees don’t currently support the new input system, will there be a solution for this in the future?

    #17207
    Gavalakis
    Keymaster

    Hello. The dialogue trees UI is using neither the old nor the new input system, but instead it is using the UI Event System for catching clicks to skip the dialogue. Are you also referring to this functionality (skipping the dialogue in the dialogue trees UI) ?

    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #17211
    Kenny
    Participant

    Hi . Yes! as you said (skipping the dialogue in the dialogue trees UI) . The game uses mainly gamepad I need to start the next block in the dialog tree when I press the button on the gamepad (Look at the picture). The event system is not used in the game. Any solution would be very helpful Thank you.

    Attachments:
    You must be logged in to view attached files.
    #17224
    Gavalakis
    Keymaster

    Hello again!

    Please do the following changes to make the dialogue GUI work with gamepad x button (as an example).

    1) Open up DialogueUGUI.cs file.
    2) Comment the lines #51-53 (shown below) and add the extra line (shown below as well):

    3) Remove the ‘IPointerClickHandler’ interface from the class declaration in line #11 since it is now no longer needed and implemented.
    4) Move the DialogueUGUI.cs at the root of the ‘ParadoxNotion’ folder. We need to do this as to remove it from the NodeCanvas assembly so that the UnityEngine.InputSystem namespace can be accessed and used.

    Let me know if that works for you. Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #17228
    Kenny
    Participant

    Thanks!!! It works.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.