Lightweight FBX Importer
Search Results for

    Show / Hide Table of Contents

    Class MaterialConverter

    Serves as an abstract base for converting a ufbx material into a Unity material.

    Inheritance
    object
    MaterialConverter
    StandardMaterialConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FBXImporter.MaterialConverters
    Assembly: FBXImporter.MaterialMappers.dll
    Syntax
    public abstract class MaterialConverter

    Methods

    Convert(ufbx_material*, Dictionary<IntPtr, Texture2D>)

    Converts a ufbx material pointer into a Unity material, optionally using provided textures.

    Declaration
    public abstract Material Convert(ufbx.ufbx_material* material, Dictionary<IntPtr, Texture2D> textures)
    Parameters
    Type Name Description
    ufbx_material* material

    Pointer to the ufbx material.

    Dictionary<IntPtr, Texture2D> textures

    Maps ufbx textures to Unity Texture2D objects.

    Returns
    Type Description
    Material

    A new or updated Unity material that corresponds to the ufbx material.

    In this article
    Back to top Generated by DocFX