Build failing.

When i trying to build my project I have a next error:

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility: processEvent(Int32, IntPtr)
Help me please.

Is that the only thing in the log?
When ever one of my build fail it’s because I have some editor functionality somewhere like accessing AssetDatabase to create an asset, you can use those compile-time-if-statement, not sure how they’re called.

#if UNITY_EDITOR
void MyFunctionThatCantBeInABuild(){
}
#endif

Conditional compilation via preprocessor directive. :slight_smile:

1 Like