Most Buttons Not Working In Build

Greetings. I have an application that uses UI Toolkit. All the buttons work in the Editor, but most of the buttons don’t work in the Build. I tried adding the new input system, adding an empty ongui, and adding the stand alone input module and event system in the scene. None of these worked.

The problem is preventing the distribution of the application to end users.

Are there any solutions that you can suggest?

Thank you.

Have you looked at the input system docs?
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.11/manual/UISupport.html

First, thanks for your reply. Adding the Input Module seems to have worked.

The reasons some of the buttons were working is that I was accessing a SQLite database and since I had the path set to Application.dataPath, it was not able to access the database and thus the button would not lead to the desired action. I fixed that by searching and finding out that the SQLite database (at least for a Windows build) needs to be in the Steaming Assets folder and accessed by Application.streamingAssetsPath.

Thanks again.

1 Like