docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetMaterials

    GetMaterials(MaterialMeshInfo)

    Gets the materials for given MaterialMeshInfo.

    Declaration
    public List<Material> GetMaterials(MaterialMeshInfo materialMeshInfo)
    Parameters
    Type Name Description
    MaterialMeshInfo materialMeshInfo

    The MaterialMeshInfo to use.

    Returns
    Type Description
    List<Material>

    Returns the associated material instances, 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)