Page 1 of 1

Hide response menu

Posted: Thu Feb 22, 2018 9:43 am
by chud575
Howdy,

Is it possible to delay the reveal of the response menu or just hide/show it??

Re: Hide response menu

Posted: Thu Feb 22, 2018 11:10 am
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.