Skip to content

Fixing Build Problems

1 edited this page Feb 17, 2021 · 11 revisions

This page will guide you through the steps of figuring out why the changes you've made to your VRChat world might not be appearing after building or why you are getting "Last built VRChat Scene could not be found. Please Test/Compile Full Scene (Slow)." when trying to build.

Setting up Your Console for General Debugging

Locating the Console

Locating the console

The Console can be either opened from the Unity Menu Bar inside the Window menu category in the General submenu or using the Ctrl + Shift + C shortcut.


Using the Console

The Console

  1. Ensure Error Pause is disabled and enable Collapse to have fewer logs to go through.
  2. The logs you are looking for usually will be red Errors. Yellow Warnings will not matter in almost every case except for things listed below Rare Problems.
  3. You can disable showing Messages and Warnings and only have Errors enabled to find what you are looking for quickly.

Fixing the Problem

Start by clearing the console once and building again after making sure the build errors are visible in the console.

Console after setting it up

  1. While working with SDK2, you will see "Trigger on x was not initialized in time!" in your Console. These do not matter and normally happen with the SDK.
  2. The Errors you are looking for will usually be above an Error, "Error building Player because scripts had compiler errors".

Once you've located the errors stopping the new build from happening, you can inspect them better by selecting them and seeing the full message in the window at the bottom. If the errors are caused by 3rd party script not related to the SDK, and you aren't using them, you can delete them.

If you are using the asset with the problem script:

  1. Make sure the asset hasn't been depreciated and is supported on the current Unity version
  2. Update to the latest version of the asset
  3. Report the bug to the asset author so they can fix it

If the problem is a script inside the SDK:

If the problem persists after these steps ask for help! Post a proper screenshot of your errors to make the life of the person helping you easier.


Rare Problems

Problems where the cause of the problem isn't always clear.

No AssetBundle has been set for this build.

Warning: No AssetBundle has been set for this build.

Unity can't include the current scene in the build. One example cause for this is when you have your scene file outside of the Assets folder.


Known Problem Assets

List of assets known to cause problems with solutions for each case included.

Error: Assets\AllSkyFree\AllSkyFree_Menu.cs(10,4): error CS0246: The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)

Includes a script that causes build errors delete Assets/AllSkyFree/AllSkyFree_Menu.cs to fix the issue.

Error: Assets\SimpleLightProbePlacer\Scripts\LightProbeGroupControl.cs(34,13): error CS0200: Property or indexer 'LightProbeGroup.probePositions' cannot be assigned to -- it is read only

The asset is not compatible with Unity 2018 and above either apply the patch as described here or remove the asset after setting up your light probes.

Error: Cannot mark assets and scenes in one AssetBundle. AssetBundle name is "coconut_palm_tree".

The asset contains a Scene file with an asset bundle name set in its meta file, causing it always to get included in builds causing builds to error out. Either erase it from the meta file or delete the scene: Assets/Coconut Palm Tree Pack/Coconut Palm Tree Pack.unity