Forum Discussion
matt_sia
7 years agoHonored Guest
Weird Green Textbox in Unity UI Input Field for Oculus Go
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!
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
Replies have been turned off for this discussion
- DonSKORHonored GuestHi, i have the same problem. Enabling toggle "Hide Mobile Input" doesn't fix the problem. waiting for fix...
- yunhan0ExplorerI 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();
}
} - lostsomfanProtege
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 :( - worldofvrgmbhHonored GuestHi, 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); - AnonymousWe 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. - mattzeigerHonored Guest(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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 5 years ago
- 4 months ago
- 18 days ago