- Home /
Check project and cancel the build process
Hello,
I'm developing a project that it should be built only if some conditions are given.
At this moment I'm checking these conditions in the following method:
public void OnPreprocessBuild(BuildReport report)
{
//Conditions
}
The problem is: If I write this method in a normal Editor script in Unity, it is visible and it could be removed and so that, there is no checking.
I have moved it to a managed DLL. There it can't be modified but it is still easy to delete (the DLL file), so the checking is removed too.
Is there any way to keep the conditions checking in that method and it can't be removed?
Comment