Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question WebGL not working

Discussion in 'Web' started by Jacob70707, Nov 19, 2020.

  1. Jacob70707

    Jacob70707

    Joined:
    Aug 17, 2020
    Posts:
    1
    When I try to build the game, I get the error:
    Exception: Invalid WebGL template path: C:/Program Files/Unity/Hub/Editor/2020.1.6f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\WebGLTemplates\Default! Select a template in player settings.
    UnityEditor.WebGL.WebGlBuildPostprocessor.CheckBuildPrerequisites () (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:179)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:908)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
    How do I fix it?
     
  2. AgnosiaGames

    AgnosiaGames

    Joined:
    May 26, 2020
    Posts:
    57
    "Select a template in player settings." did you try this??