Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted 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,010
    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.
     
unityunity