Custom buttons in DT

Forums 💬 NodeCanvas ⚙️ Support Custom buttons in DT

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18559
    zeb
    Participant

      Hi
      I’m getting stuck trying to customize the response buttons from the dialogue tree example.
      I need a different button (sprite) for yes & no (no text required). Started by making 2 new option button prefabs then
      tried adapting OnMultipleChoiceRequest within DialogueUGUI… but not successful.
      Any help would be greatly appreciated!

      #18560
      Gavalakis
      Keymaster

        Hey,

        This would require a custom dialogue UI implementation, probably one created based on the existing one. What you could do is to add two Image variables to the UI script, one for Yes and another for No. Then change the Image used on the option button gameobject instantiated and used, based on the statement.text (or even the statement.meta). If you want so, I can certainly take a look at this tomorrow and provide you with a more complete example for your convenience if so required.

        Let me know.
        Thanks!

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