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

Can't type in input field

Discussion in 'WebGL' started by Cress7, Apr 16, 2016.

  1. Cress7

    Cress7

    Joined:
    Dec 27, 2015
    Posts:
    20
    EDIT: you can type in input fields using the following code
    Code (CSharp):
    1. #if !UNITY_EDITOR && UNITY_WEBGL
    2. WebGLInput.captureAllKeyboardInput = true;
    3. #endif
     
    Last edited: Apr 16, 2016
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    You should set that to 'false' to get html input fields to receive inputs.
     
  3. wbl1

    wbl1

    Joined:
    Apr 22, 2009
    Posts:
    159