docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Create local foam near a GameObject

    To create foam on a water surface near a GameObject, follow these steps:

    1. In the Hierarchy window, open the context menu (right-click) and select Water > Surface, then create a water surface.

    2. In the Inspector window of the water surface, in the Water Decals section, enable Foam.

    3. In the Hierarchy window, right-click a GameObject and select Water > Surface > Water Decal.

      The new water decal is now a child of the GameObject.

    4. In the Scene view, move the water decal close to the GameObject.

    5. Move the GameObject along the water surface and notice how a trail of foam forms in its wake.

    Local foam near a GameObject

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)