docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetMaterial

    GetMaterial(MaterialMeshInfo)

    Gets the material for given MaterialMeshInfo.

    Declaration
    public Material GetMaterial(MaterialMeshInfo materialMeshInfo)
    Parameters
    Type Name Description
    MaterialMeshInfo materialMeshInfo

    The MaterialMeshInfo to use.

    Returns
    Type Description
    Material

    Returns the associated material instance, or null if the material is runtime.

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