Dialog trees and new input system.

Forums 💬 NodeCanvas 🗨️ General Discussion Dialog trees and new input system.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12988
    kesha
    Participant

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

      #12992
      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.

        #12991
        kesha
        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.

          #12990
          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.

            #12989
            kesha
            Participant

              Thanks!!! It works.

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