docs.unity3d.com
    Show / Hide Table of Contents

    Class HighDefinitionMaterialExport

    Inheritance
    Object
    MaterialExportBase
    HighDefinitionMaterialExport
    Inherited Members
    MaterialExportBase.BaseColorProperty
    MaterialExportBase.MainTexProperty
    MaterialExportBase.ColorProperty
    MaterialExportBase.MetallicProperty
    MaterialExportBase.SmoothnessProperty
    MaterialExportBase.CutoffProperty
    MaterialExportBase.SetAlphaModeAndCutoff(Material, Material)
    MaterialExportBase.IsDoubleSided(Material, Int32)
    MaterialExportBase.IsUnlit(Material)
    MaterialExportBase.ExportUnlit(Material, Material, Int32, IGltfWritable, ICodeLogger)
    MaterialExportBase.ExportTextureInfo(Texture, IGltfWritable, ImageFormat)
    MaterialExportBase.ExportNormalTextureInfo(Texture, Material, IGltfWritable, Int32)
    MaterialExportBase.AddImageExport(IGltfWritable, ImageExportBase, Int32)
    MaterialExportBase.ExportTextureTransform(TextureInfo, Material, Int32, IGltfWritable)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GLTFast.Export
    Syntax
    public class HighDefinitionMaterialExport : MaterialExportBase, IMaterialExport

    Methods

    ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)

    Converts a Unity material to a glTF material.

    Declaration
    public override bool ConvertMaterial(Material uMaterial, out 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
    Boolean

    True if no errors occured, false otherwise

    Overrides
    MaterialExportBase.ConvertMaterial(Material, out Material, IGltfWritable, ICodeLogger)

    GetUnlitColor(Material, out Color)

    Declaration
    protected override bool GetUnlitColor(Material uMaterial, out Color baseColor)
    Parameters
    Type Name Description
    Material uMaterial
    Color baseColor
    Returns
    Type Description
    Boolean
    Overrides
    MaterialExportBase.GetUnlitColor(Material, out Color)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023