Is there any way to disable an OnPreCull function?

I've tried disabling the game object, the camera, and the script in which the OnPreCull function lies. Nothing works. Can it be done without removing and re-attaching the script?

As far as I've seen, setting a script to disabled (enabled = false) only automatically stops Update() and FixedUpdate() calls.

However, you should be able to add an if statement in your OnPreCull() to check the enabled property and only execute your code if enabled = true.

Are you saying you've deleted the OnPreCull function, but the function that was there is still being activated somehow? If so, make sure there are no compilation errors - Unity uses the last successfully compiled version of the script following a compilation error. Also, make sure you have opened the script file from within Unity (ie, not from the desktop or the text editor's "open recent" command.