Page 1 of 1

Setactive back issue

Posted: Sat Jul 30, 2022 3:56 pm
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

Re: Setactive back issue

Posted: Sat Jul 30, 2022 6:16 pm
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".

Re: Setactive back issue

Posted: Sat Jul 30, 2022 7:41 pm
by hrohibil
Yes I am actually using dialogue system event.

Re: Setactive back issue

Posted: Sat Jul 30, 2022 8:41 pm
by Tony Li
Great. If that doesn't work for some reason, let me know.