Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    UnderwaterFog
    Namespace: NWH.DWP2
    Assembly: NWH.DWP2.dll
    Syntax
    public class UnderwaterFog : MonoBehaviour

    Fields

    | Edit this page View Source

    waterTransform

    Transform of the water surface. Used to determine if camera is underwater.

    Declaration
    public Transform waterTransform
    Field Value
    Type Description
    Transform
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics