Configuring Fogs from Scripts in Unity 5.2

Asked 1 years ago, Updated 1 years ago, 35 views

If you set the fog in RenderSettings.fog=true from the script,
There is a fog on the PC, but I installed it on the actual Android machine and
No Fogs Appear When Running…
From Script in Unity 4.4 Similar Steps When you set the fog settings, the fog is displayed both on the PC and on the actual machine.
Are there any steps required to configure a fog from a script in Unity 5 and later?
Also, is there anyone who can configure fog settings from a script in Unity 5 or later?

c# unity3d

2022-09-29 21:22

1 Answers

I think it's a Unity bug.

In the Edit > Project Settings > Graphics menu, I just changed the Fog setting for the inspector from Automatic to Manual, and now the Fog comes out on the actual machine.

If the Fog type is Linear, it will be more reliable if you check only Linear.

Fog Settings


2022-09-29 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.