I’m using a call to OnPreCull () in my camera to move the near and far clip plane but although the result is visible and correct in the Scene window, i.e I can select the camera and see the view frustum as I set it, in the game window the objects are getting clipped in the wrong place.
In the scene view I can clearly see my geometry inside the frustum but in the game view it gets clipped as if the far plane is in the wrong place. If I disable my script and just manually set the value of the near and far plane it works fine.
So is it in fact not possible to set the near and far plane in a script?
Can anyone confirm that setting the near and far planes actually works.