cancel
Showing results for 
Search instead for 
Did you mean: 

Weird Green Textbox in Unity UI Input Field for Oculus Go

matt_sia
Level 2
Hey all,

I am experiencing a weird bug that I cannot seem to find the solution to. In my Unity project, when I click an input field with the Oculus Go controller, a rectangular green textbox shows up at the very bottom of the screen for around one second, and it's headlocked. This seems to be an Android input field because when I fill up the input field, its fills up with the same characters. Also, this does not happen in the Unity editor.

I wish I could show you all a screenshot or video, but they did not show up at my attempts to create one. However, I created an Android build that you may all test.

https://drive.google.com/file/d/1PnbiD7p8NH5JpoKC-hNH2J9Egg2gn9kN/view?usp=sharing 

Game Engine: Unity 2018.2.13f1
Oculus Integration: 1.32.0

Please advise. Thanks! 
7 REPLIES 7

DonSKOR
Level 2
Hi, i have the same problem. Enabling toggle "Hide Mobile Input" doesn't fix the problem. waiting for fix...

yunhan0
Level 3
I solved this issue by writing a class inherits from the input field. So remove the default InputField component and attach the MobileInput. Don't forget to assign some properties such as TextComponent and Placeholder inside the new MobileInput Component.
using UnityEngine;
using UnityEngine.UI;

public class MobileInput : InputField
{
protected override void Start()
{
keyboardType = (TouchScreenKeyboardType)(-1);
base.Start();
}
}

lostsomfan
Level 3

yunhan0 said:

I solved this issue by writing a class inherits from the input field. So remove the default InputField component and attach the MobileInput. Don't forget to assign some properties such as TextComponent and Placeholder inside the new MobileInput Component.
using UnityEngine;
using UnityEngine.UI;

public class MobileInput : InputField
{
protected override void Start()
{
keyboardType = (TouchScreenKeyboardType)(-1);
base.Start();
}
}



this bugs out when using more than one inputfield 😞

worldofvrgmbh
Level 2
Hi, we are experiencing the same problem.
This line (although it fixes the green box) unfortunately creates an endless flow of overflow exceptions on android causing the framerate to drop 😕
keyboardType = (TouchScreenKeyboardType)(-1);

yunhan0
Level 3
@worldofvrgmbh @lostsomfan
Sorry I've just noticed your reply.
I read the source code of Unity's inputfield, I reckon there's no way to avoid this problem if using Unity's Input Field.
Eventually solved this problem by using VRUIKit's customised input field.

wozhdal
Level 3
We have the same bug. (2018.3.10f1)
just to add a screenshot of the bug : 
it's the green circle at the bottom.
It appeears ~0.5s and it's very annoying.8ix91re1lxcc.png

mattzeiger
Level 2
(2019.2.11f1) We were having the same problem, but fixed it.

It didn't occur on the Quest or Rift, only on the Go. It occurs only when you select the input field.
The MobileInput code suggested above breaks with two input fields (Username/Password).

We were able to solve by checking Hide Mobile Input and having Content Type be Custom. Screenshot attached.
aezv9fs2pi6s.png