Skip to content

Common Unity Bugs and How to Fix Them

Bugs happen. I add the fix here when I find one that’s a pain to solve. Because bugs suck and no one wants them.

Unity Script Not Appearing in Add Component List

If you have a script in Unity that does not show up in the drop down list when you tap add component, check if there is a case difference (or spelling difference) between the filename and the script class. A case or spelling difference can cause script to be left out of Add Component list.

iOS Simulators Not Showing Up: Adjust Player Settings

Go to Edit -> Project Settings -> Player -> Other Settings -> Target SDK and set it to Simulator SDK instead of Device SDK.

Asset Store Tools: Package Upload: Unity FileNotFoundException: could not find file contents/resources/loader.html

Newer Unity builds have been missing this file which prevents uploading assets to the asset store. To resolve this download an older version of Unity (2020 may work, 2019 does) and copy the file from the old version into the new version.

On Mac this would be something like the commands:
cd /Applications/Unity/Hub/Editor/
cp 2020.3.41f1/Unity.app/Contents/Resources/loader.html 2021.3.27f1/Unity.app/Contents/Resources/loader.html

Published inCode ExamplesDevelopment Tips

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *