Question by
$$anonymous$$ · Feb 21, 2019 at 04:53 AM ·
camerarender
Camera.Render() not working in edit/play mode
I am attempting to render the camera manually with a call to camera.render(0) in the update function. However the game window still displays "No Cameras Rendering" when in both edit and play mode. If the game is built the camera renders just fine. The camera is disabled as per the documentation for Camera.Render(). private Camera m_camera;
void Start()
{
m_camera = GetComponent<Camera>();
m_camera.enabled = false;
}
void Update()
{
m_camera.Render();
}
Comment
Your answer
Follow this Question
Related Questions
Screen Space - Camera : Not displaying button size correctly during play 0 Answers
Use CameraClearFlags to lower the visual frame-rate? 0 Answers
AR-like Camera Effect, How to Achieve Custom Shaped Culling Masks for Camera? 1 Answer
Screen.width/height are forced to weird values when launched with -batchmode 0 Answers