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 Webgl Build Fail because of WebGLInput.captureAllKeyboardInput

Discussion in 'Scripting' started by arrowbasse, Apr 20, 2021.

  1. arrowbasse

    arrowbasse

    Joined:
    Oct 5, 2017
    Posts:
    3
    Hello.
    My Linux Unity project fails when running the build from the terminal.
    This happens only when I use the captureAllKeyboardInput line
    https://docs.unity3d.com/ScriptReference/WebGLInput-captureAllKeyboardInput.html

    It might be something related to the Library Folder, as when I build a new project without the line, and THEN build again with the line, it works.

    The build command I use is this:

    Unity -quit -batchmode -nographics -projectPath ./unity_src -executeMethod WebGLBuilder.build -output ../webgl_dist
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    If you suspect the library folder, there isn't much information on fixing it because the usual thing you do is just delete the library folder and let Unity rebuild it. So I'd just try that.
     
  3. arrowbasse

    arrowbasse

    Joined:
    Oct 5, 2017
    Posts:
    3
    Hello. I still not managed to make a succesful build from the command line when I have the webcapture line wrtitten. Without it the build works.
     
  4. diego_timining

    diego_timining

    Joined:
    Mar 17, 2022
    Posts:
    3
    Hello!
    Did you find a solution to the problem?, I have exactly the same problem with the same line of code