Class MaterialMap
A mapping from USD shader ID to Unity Material.
Inherited Members
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>) |