Invector 3rd person controller not moving after conversation
Invector 3rd person controller not moving after conversation
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.
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
Hi,
Invector's download link for the vCrossPlatformInput scripts no longer works. Where did you download them from?
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
From this link on March 15 provided by Victor in his forum....
http://invector.proboards.com/post/16772
http://invector.proboards.com/post/16772
Re: Invector 3rd person controller not moving after conversation
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
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.
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
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?
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
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.
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
Excellent....Thanks