Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Can't enter text into an input field when using AR Foundation AR Kit

Discussion in 'AR' started by blamejane, Dec 30, 2021.

  1. blamejane

    blamejane

    Joined:
    Jul 8, 2013
    Posts:
    233
    Hey everyone I'm at a loss trying to figure out why I can't type any text into the input field when running my iOS app. The app uses AR Foundation/AR Kit. Using the Simple AR scene from the Unity AR samples, I added a UI Text game object to the hierarchy and tested in Unity Editor and on my mobile device. I can't click into the text field and I can't enter text.

    I looked at the event system game object and saw a warning about the project not utilizing the new Input system. So I clicked the button to automatically add that. I ran the test again but nothing worked, I still couldn't enter text because I can't click into the input field.

    I noticed there is an XR UI Canvas game object, so I added that to the hierarchy and a child UI Text on this canvas. Tested again and still can't click into input or enter text.

    I tried a new blank unity project, added AR/XR packages and in the default scene just added a UI Text field. Tested again, still no-go.

    I'm using Unity 2020.3.2xx with all of the latest up-to-date packages.

    I don't see anyone else with this problem that I can find.

    Any ideas?

    FYI, I posted on stack-overflow, but there isn't a lot of traffic and I"m desperate to solve this; so decided to post on Unity forum. https://stackoverflow.com/questions...ext-input-field-using-ar-foundation-on-mobile
     
    Last edited: Dec 30, 2021
  2. blamejane

    blamejane

    Joined:
    Jul 8, 2013
    Posts:
    233
    D'oh. Nevermind