docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddMaterial

    AddMaterial(Material, out int, IMaterialExport)

    Adds a Unity material

    Declaration
    public bool AddMaterial(Material uMaterial, out int materialId, IMaterialExport materialExport)
    Parameters
    Type Name Description
    Material uMaterial

    Unity material

    int materialId

    glTF material index

    IMaterialExport materialExport

    Material converter

    Returns
    Type Description
    bool

    True if converting and adding material was successful, false otherwise

    Implements
    IGltfWritable.AddMaterial(Material, out int, IMaterialExport)
    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)