Setactive back issue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Setactive back issue

Post by hrohibil »

Hi Tony.

was hoping you could help out here.
During a conversation i use Dialogue system events in the start and end to display or hide my mobile UI controls.

I use the setactive.
When the conversation end and the MobileUI gets enabled, the last key that was pressed is still pressed, meaning that as soon as the conversations ends, player just moves in the direction of the last touch input.

Is there a way to when setactive that mobilecontrols are starting with no movement in joystick?
Hope you understand what i mean
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setactive back issue

Post by Tony Li »

If you're using the SetActive() sequencer command for this, use Dialogue System Events instead. Under the OnConversationEnd() UnityEvent, tick "Run On Conversation End Events At End Of Frame".
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Re: Setactive back issue

Post by hrohibil »

Yes I am actually using dialogue system event.
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setactive back issue

Post by Tony Li »

Great. If that doesn't work for some reason, let me know.
Post Reply