04-05-2024 12:29 AM - edited 04-05-2024 12:39 AM
Hello, I want to use system keyboard to type in unity text mesh pro input field. when i clicked in input field some time it open native keyboard and sometime not (I am using meta quest 3). Is it know bug to meta quest 3 ? In Oculus quest 2 it working fine. I have enabled required system keyboard and set target device to Quest 3 also in OVRManager script.
I have also checked my AndroidManifest file and found there is entry of
<uses-feature android:name="oculus.software.overlay_keyboard" android:required="false" />
My Unity ver is 2022.3.19f1.
So what is the problem? Its very frustrating to continue click on input field then some times it only.
Solved! Go to Solution.
04-10-2024 05:58 AM
It doesn't work.
Also i've tested this hack. And i noticecd that it doesn't work every times. Sometimes i seen System keyboard but it was not linked with field and entered text didn't change text in field.
But anyway with this fix input works much better.
04-13-2024 12:10 PM
I don't have a solution yet but I think I figured out our problem.
When you click on the input field too long it immediately loses focus after the system keyboard pops up.
So long pressing should reliably produce that problem.
05-14-2024 06:18 AM
hack from this topic stop workingfor me ;(
05-31-2024 05:46 AM
@jtriveri , @VishalFuturristic , looks like i found better solution than this hack.
The first thanks @xrworkout.io for idea about cause of issue. I debuged TMP_InputField
and i see that lifecycle the following: OnPointerDown call OnSelect if field is not focused. And
using TMPro;
using UnityEngine.EventSystems;
public class TMPInputFieldVR : TMP_InputField
{
public override void OnPointerDown(PointerEventData eventData)
{
// Do nothing because it doesn't need for VR
}
public override void OnPointerClick(PointerEventData eventData)
{
// Call On Select when OnPointerClick fired instead of OnPointerDown
OnSelect(eventData);
}
}
05-31-2024 11:51 AM
Will check this out. Thanks for diving in and potentially making something better than my awful hack lol 🙂
08-16-2024 03:03 PM
I ran into a similar issue, for me the issue is that when i click on the input field if i do a click that is too long it focuses back on the input field and closes the keyboard so it looks like the keyboard was never opened. I will probably use your hack.
08-16-2024 04:19 PM
Thanks a lot. This fixed the issue for me with latest SDK and unity 2023. I agree with your assessment the issue is long clicks stealing away the focus.