Search Unity

Feedback Could build failure contain a more explicit error?

Discussion in 'Addressables' started by dgoyette, Jan 9, 2020.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    I just ran into what I thought was Addressables misbehaving, but it turned out it was working fine. I was trying to build player content, but kept getting telling me "Player scripts failed to compile". However, there were no compiler errors when I compiled in Visual Studio.

    The problem ended up being that Addressables builds using production build settings, which means it doesn't allow any Editor-only content. It turned out I had some editor-only code where it didn't belong. It's reasonable that Addressables failed to build because of this. But it would have been really helpful to know why in the error. I ended up having to do a full build of my game in order to track down the build failure.

    Is it possible for Addressables to know at least one build error that caused the build to fail, so that I don't need to do a full build of the game to track down these kinds of things?