docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialMap

    A mapping from USD shader ID to Unity Material.

    Inheritance
    object
    MaterialMap
    Implements
    IEnumerable<KeyValuePair<string, Material>>
    IEnumerable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Formats.USD
    Assembly: solution.dll
    Syntax
    public class MaterialMap : IEnumerable<KeyValuePair<string, Material>>, IEnumerable

    Fields

    Name Description
    useOriginalShaderIfAvailable

    Looks for additional metadata describing the original shader name, rather than using the generic spec/metallic workflow shaders.

    Properties

    Name Description
    DisplayColorMaterial

    A material to use when no material could be found.

    this[string]

    Returns a shared instance of the mapped material, else null. Does not throw exceptions.

    MetallicWorkflowMaterial
    SpecularWorkflowMaterial

    Methods

    Name Description
    AssignColor(Material, Color)
    ClearRequestedBindings()

    Clears the requested bindings, returning the current queue.

    GetEnumerator()

    Returns an enumerator that iterates through a collection.

    GetPrimvars(string)
    InstantiateSolidColor(Color)

    Returns an instance of the solid color material, setting the color. If the same color is requested multiple times, a shared material is returned.

    RequestBinding(string, MaterialBinder)

    Request an object to be bound at a later time in a vectorized request.

    SetPrimvars(string, List<string>)
    In This Article
    Back to top
    Copyright © 2023 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)