My builds keep stopping because Unity automatically adds things that I have to remove like:
using Codice.Client.BaseCommands.Merge.Restorer.Finder;
using UnityEditor.VersionControl;
using static PlasticGui.LaunchDiffParameters;
using UnityEditor.SceneManagement;
I’m not using version control, as far as I know. I don’t know why it keeps adding things so that I can’t make an Android build.
Can someone direct me to the setting where I can turn off this automatic edit of my source files? I have no idea what’s going on and where this is coming from.
This happens when your IDE tries to be “intelligent” and as you type in the name of a Type, it will assume that you meant to use the Search class from Codice.etc.etc.etc rather than UnityEditor.Search - just as an example. You may quickly change that issue but the using statement remains.
You’ll find those settings somewhere in your IDE, and google if you need help finding that. I can’t remember where to find these settings either. I do know that Rider lets you add excludes, as in “please, please never ever suggest me any Type from Codice.* you dumb piece of §%#$!”.
Also, Rider has that nice “cleanup using statements” feature. I have the whole “code cleanup” functionality on a keypress as I like to never ever have to worry about code formatting, and this is also set up to remove any unneeded using statements.