docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsUnlit

    IsUnlit(Material)

    Retrieves whether material is unlit

    Declaration
    protected static bool IsUnlit(Material material)
    Parameters
    Type Name Description
    Material material

    Material to analyze

    Returns
    Type Description
    bool

    True if material uses unlit shader, false otherwise

    In This Article
    Back to top
    Copyright © 2024 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)