docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetSurfaceType

    SetSurfaceType(Material, bool)

    Set the Surface Type of a HDRP material.

    Declaration
    public static void SetSurfaceType(Material material, bool transparent)
    Parameters
    Type Name Description
    Material material

    The material to change.

    bool transparent

    Controls if the material has an opaque or transparent Surface Type.

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