WebGl Build Fails

When I try to build a project with the “Project Subfolder” field empty, it returns the error:

Error: unrecognized project! Please check your app configuration - if this is a Unity application, We expect your “Project Subdirectory” to be set to the path which directly contains the ProjectSettings and Assets directories. For a native app, this should be set to the path which directly contains the project file (.xcodeproj, project.properties, etc).

So I tried selecting a folder with the Assets and ProjectSettings.
I have a folder “A” in which I keep the ProjectSettings and Assets, but when I select folder A it still returns the same error. What can be causing this problem?

As the log says, cant find project. Be suer to enter the full path from the start of your git repo to the Unity project without / at the end

So does that mean I have to enter the path from the git repo? I’ve been entering the path to “Assets” and “ProjectSettings” from my computer…

For instance my project folder is under D:/MyGames/MyRepo/unityProject

My Repo git is in D:/MyGames/MyRepo

Then I have to specified only unityProject in UCB wen interface

this folder contains Assets and ProjectSettings

Would I have to set up Git on my device to do this? Or can you do this straight from GitHub? Sorry, I’m a total beginner to Git and Unity.

no just in UCB web interface.

if your root folder for your Git repository is in D:/MyGames/MyRepo and your Unity project folder is D:/MyGames/MyRepo/UnityProject then all you have to do is to set the subfolder in UCB web interface to UnityProject.