Talk:CameraRenderSettings

get_fog can only be called from the main thread.
When running a game with a camera that has this script attached, I get the error:

get_fog can only be called from the main thread.

Constructors and field initializers will be executed from the loading thread when loading a scene.

Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.

Googling around shows that initializing public variables with RenderSettings variables causes the error, so how have you ever gotten this script to work? Do you just accept exceptions in your game? :-) --Kspr (talk) 11:10, 12 June 2014 (CEST)