mesh from scratch disappearing if transform out of view

I am creating a plane mesh through code using this function: https://gist.github.com/952795

For some reason when the transform point of the game object moves out of camera view, the entire mesh isn't rendered. I know the bounding box info is being updated by seeing the Debug.Log info.

Try doing RecalculateBounds after assigning the mesh, rather than inside the function that creates the mesh.

Eric5h5, you were on the right track. It turns out that you have to call RecalculateBounds() on the mesh AFTER assigning it to the mesh property of the MeshFilter component. Apparently it doesn't take the bounds values with it, which seems like a bug (I'll report it).