Class UnderwaterFog
Simple utility script that enables Unity fog when the main camera goes underwater. Attach this script to any GameObject in the scene and assign the water surface transform.
Namespace: NWH.DWP2
Assembly: NWH.DWP2.dll
Syntax
public class UnderwaterFog : MonoBehaviour
Fields
| Edit this page View SourcewaterTransform
Transform of the water surface. Used to determine if camera is underwater.
Declaration
public Transform waterTransform
Field Value
| Type | Description |
|---|---|
| Transform |