docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertMaterial

    ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)

    Converts a Unity material into a glTF material

    Declaration
    public abstract bool ConvertMaterial(Material uMaterial, out Material material, IGltfWritable gltf, ICodeLogger logger)
    Parameters
    Type Name Description
    Material uMaterial

    Source material

    Material material

    Resulting glTF material

    IGltfWritable gltf

    glTF to export material to. Will be used to add required texture images

    ICodeLogger logger

    Custom logger

    Returns
    Type Description
    bool

    True if material was converted successfully, false otherwise

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