docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMaterialExport

    Converts a Unity Material into a glTF material

    Namespace: GLTFast.Export
    Assembly: glTFast.Export.dll
    Syntax
    public interface IMaterialExport

    Methods

    ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)

    Converts a Unity material to a glTF material.

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

    Source material

    Material material

    Resulting material

    IGltfWritable gltf

    Associated IGltfWriter. Is used for adding images and textures.

    ICodeLogger logger

    Logger used for reporting

    Returns
    Type Description
    bool

    True if no errors occured, 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)