Hide response menu

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
chud575
Posts: 50
Joined: Thu May 11, 2017 10:57 am

Hide response menu

Post by chud575 »

Howdy,

Is it possible to delay the reveal of the response menu or just hide/show it??
User avatar
Tony Li
Posts: 21070
Joined: Thu Jul 18, 2013 1:27 pm

Re: Hide response menu

Post by Tony Li »

The easiest way is to use the previous node's Sequence field. For example:
  • NPC: "Would you rather... be a ninja or be a pirate? Think about it for a few seconds."
    Sequence: Delay(5)
    • Player: "A ninja!"
    • Player: "A pirate! Yarr!"
This will keep the NPC's subtitle text visible for 5 seconds before showing the response menu.

If you want to show the subtitle text for 2 seconds and then keep it hidden for the remaining 3 seconds, you can use a Sequence like this:
  • NPC: "Would you rather... be a ninja or be a pirate? Think about it for a few seconds."
    Sequence: Delay(5); SetActive(NPC Subtitle Line,false)@2
    • Player: "A ninja!"
    • Player: "A pirate! Yarr!"
This will deactivate the GameObject named "NPC Subtitle Line" at the 2-second mark.
Post Reply