I have a following script attached to prefab which instantiates when stage is loaded:
void Start () {
RenderSettings.fog = true;
RenderSettings.fogMode = FogMode.ExponentialSquared;
RenderSettings.fogColor = new Color(0,0,0);
RenderSettings.fogDensity = 0.05f;
}
The script works fine in editor and I can see the fog, but in PC build nothing happens. What’s wrong?