Unity3d, when I touch an InputField, the keyboard doesn't show
When I tap on an inputfield on android device, i get a little text area and an ok button. But I have to touch the input field to get the keyboard to pop up.
Any ideas?
All I'm doing code wise is:
if (!wasFocused && TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = true;
btnMat.color = validC;
else if (wasFocused && !TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = false;
btnMat.color = invalidC;
//messageMNG.CreateMessage("Checking name: " + usernameChangeInput.text, true);
dbMNG.CheckName(usernamePreview.text);
When I do a check, it says that touchscreenkeyboard is visible.
**EDIT
I just created a new scene and added an input field and a text mesh pro input field and I get the exact same thing.
android unity3d input
add a comment |
When I tap on an inputfield on android device, i get a little text area and an ok button. But I have to touch the input field to get the keyboard to pop up.
Any ideas?
All I'm doing code wise is:
if (!wasFocused && TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = true;
btnMat.color = validC;
else if (wasFocused && !TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = false;
btnMat.color = invalidC;
//messageMNG.CreateMessage("Checking name: " + usernameChangeInput.text, true);
dbMNG.CheckName(usernamePreview.text);
When I do a check, it says that touchscreenkeyboard is visible.
**EDIT
I just created a new scene and added an input field and a text mesh pro input field and I get the exact same thing.
android unity3d input
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
2
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57
add a comment |
When I tap on an inputfield on android device, i get a little text area and an ok button. But I have to touch the input field to get the keyboard to pop up.
Any ideas?
All I'm doing code wise is:
if (!wasFocused && TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = true;
btnMat.color = validC;
else if (wasFocused && !TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = false;
btnMat.color = invalidC;
//messageMNG.CreateMessage("Checking name: " + usernameChangeInput.text, true);
dbMNG.CheckName(usernamePreview.text);
When I do a check, it says that touchscreenkeyboard is visible.
**EDIT
I just created a new scene and added an input field and a text mesh pro input field and I get the exact same thing.
android unity3d input
When I tap on an inputfield on android device, i get a little text area and an ok button. But I have to touch the input field to get the keyboard to pop up.
Any ideas?
All I'm doing code wise is:
if (!wasFocused && TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = true;
btnMat.color = validC;
else if (wasFocused && !TouchScreenKeyboard.visible && createAccountPanel.activeSelf)
wasFocused = false;
btnMat.color = invalidC;
//messageMNG.CreateMessage("Checking name: " + usernameChangeInput.text, true);
dbMNG.CheckName(usernamePreview.text);
When I do a check, it says that touchscreenkeyboard is visible.
**EDIT
I just created a new scene and added an input field and a text mesh pro input field and I get the exact same thing.
android unity3d input
android unity3d input
edited Sep 23 '18 at 22:14
asked Sep 21 '18 at 14:38
DKinnison
8011
8011
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
2
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57
add a comment |
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
2
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
2
2
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57
add a comment |
1 Answer
1
active
oldest
votes
I was having a similar problem today, but found the reason no keyboard was showing was due to building and launching onto a locked phone. When I made sure the phone was unlocked when I clicked the input, the keyboard showed up below that box/ok portion.
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52446050%2funity3d-when-i-touch-an-inputfield-the-keyboard-doesnt-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was having a similar problem today, but found the reason no keyboard was showing was due to building and launching onto a locked phone. When I made sure the phone was unlocked when I clicked the input, the keyboard showed up below that box/ok portion.
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
add a comment |
I was having a similar problem today, but found the reason no keyboard was showing was due to building and launching onto a locked phone. When I made sure the phone was unlocked when I clicked the input, the keyboard showed up below that box/ok portion.
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
add a comment |
I was having a similar problem today, but found the reason no keyboard was showing was due to building and launching onto a locked phone. When I made sure the phone was unlocked when I clicked the input, the keyboard showed up below that box/ok portion.
I was having a similar problem today, but found the reason no keyboard was showing was due to building and launching onto a locked phone. When I made sure the phone was unlocked when I clicked the input, the keyboard showed up below that box/ok portion.
answered Oct 1 '18 at 0:01
Eric Marley
1
1
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
add a comment |
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
1
1
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Very interesting. I'll pass that along to Unity. We have narrowed it down to only Pixel and Pixel 2's. I'm awaiting an answer from them and will report back as soon as I have a solid answer! Thanks so much for your help!
– DKinnison
Oct 1 '18 at 2:49
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
Did you get any response from them yet?
– serge
Nov 20 '18 at 22:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52446050%2funity3d-when-i-touch-an-inputfield-the-keyboard-doesnt-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you modify the InputField properties in any way via code or the inspector? Also, have you seen this on multiple devices?
– Alex Myers
Sep 21 '18 at 15:09
2
edited question: All I'm doing is checking if keyboard is visible or not. it returns true. My suspicion is that i'ts not "active" but I can't access it like the docs suggest with touchscreenkeyboard.active.
– DKinnison
Sep 21 '18 at 15:57