I really like the existing LineRenderer.BakeMesh API, but there's one thing that bugs me a about it: It requires Camera.main to be available when called. If there is no camera in the scene, BakeMesh throws an exception and does not create the mesh. I understand that the camera will be used to determine how the LineRenderer line is oriented towards the camera, if it uses view/camera alignment. However, in my case, my LineRenderer is set to Transform Z Alignment, which means, that it does not align to the view and does not need a camera at all. When I call BakeMesh I can ensure that the settings are correct and I really don't want to have a camera in the scene. I also don't see any reason why the BakeMesh function would need a camera other than for alignment. Would it be possible for Unity to remove this dependency on the camera and provide a BakeMesh call which does not support view alignment and does not require a camera?