Page 1 of 2
Invector 3rd person controller not moving after conversation
Posted: Sun Mar 24, 2019 11:50 pm
by tezza73
Hi,
I am using Invector 3rd person controller mobile controls.
The left analogue stick that moves the player is using the Horizontal and Vertical inputs.
At the start of a conversation if I make the Invector UI (vUI) inactive - in order to hide the hide the HUD and mobile controls during a conversation then make it active again after the conversation, the left analogue joystick no longer works. All other controls work.
If I don't inactivated the UI then everything works fine but the it visually interferes with the conversation UI.
Please help.
Re: Invector 3rd person controller not moving after conversation
Posted: Mon Mar 25, 2019 11:04 am
by Tony Li
Hi,
Invector's download link for the vCrossPlatformInput scripts no longer works. Where did you download them from?
Re: Invector 3rd person controller not moving after conversation
Posted: Mon Mar 25, 2019 4:17 pm
by tezza73
From this link on March 15 provided by Victor in his forum....
http://invector.proboards.com/post/16772
Re: Invector 3rd person controller not moving after conversation
Posted: Mon Mar 25, 2019 4:28 pm
by Tony Li
Thanks! I will check it out and try to have an answer for you by tomorrow.
Re: Invector 3rd person controller not moving after conversation
Posted: Mon Mar 25, 2019 4:45 pm
by tezza73
Thank you
Re: Invector 3rd person controller not moving after conversation
Posted: Tue Mar 26, 2019 9:18 pm
by Tony Li
Please try this:
Add a Dialogue System Invector Bridge component to your player, as described in the
setup instructions. This will prevent the mobile controls from affecting the player during conversations.
If you want to hide the mobile controls, disable the mobile UI's Canvas component. Don't deactivate the LeftAnalog GameObject. When the LeftAnalog's Invector Joystick component is deactivated (even temporarily such as during a conversation), it permanently disconnects itself from Invector. Ideally it would reconnect itself when enabled, but it doesn't do this. So the best solution is what I just described.
Re: Invector 3rd person controller not moving after conversation
Posted: Wed Mar 27, 2019 8:35 pm
by tezza73
Thanks Tony,
I worked around the issue by replacing Invectors analogue joystick with another one from Control Freak asset.
One more question:
Is there a global way to hide UI and turn it back on instead of adding the sequence in every conversation?
Re: Invector 3rd person controller not moving after conversation
Posted: Wed Mar 27, 2019 8:43 pm
by Tony Li
Yes, add a Dialogue System Events component to the player. Configure the OnConversationStart() event to hide the UI, and OnConversationEnd() to show it again.
This assumes that the player and the UI are part of the scene and not marked Don't Destroy On Load. If both are marked Don't Destroy On Load, you can continue to use Dialogue System Events. If only one is, you can add a Dialogue System Trigger to the player. Set the trigger dropdown to OnConversationStart. Add a Play Sequence action that hides the UI. Then add another Dialogue System Trigger set to OnConversationEnd that shows the UI again.
Re: Invector 3rd person controller not moving after conversation
Posted: Wed Mar 27, 2019 9:31 pm
by tezza73
Excellent....Thanks
Re: Invector 3rd person controller not moving after conversation
Posted: Wed Mar 27, 2019 9:48 pm
by Tony Li
Happy to help!