docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsOpaque

    IsOpaque(uint)

    Check if material is opaque. Function will return 'False' if:\n- The 'Opacity' Coeff is not 1.0\n- The 'Opacity' property is a Texture\n- The 'Albedo' property is a Texture and at least one pixel of the texture has an alpha value

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public bool IsOpaque(uint material)
    Parameters
    Type Name Description
    uint material

    Material to check opacity

    Returns
    Type Description
    bool
    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)