Class ReadMaterialNode
This node will read Unity Material info from a list of UsdShadeMaterial prim.
Inherited Members
Namespace: Unity.Importer.USD
Assembly: Unity.Importer.USD.dll
Syntax
[NodeMetadata("ReadMaterialNode", 6)]
public class ReadMaterialNode : Node<ReadMaterialNode.InputPort, ReadMaterialNode.OutputPort>, INode<ReadMaterialNode.InputPort, ReadMaterialNode.OutputPort>, INodeSerialization
Methods
GetSamplerId(UsdShadeShader, TfToken)
Declaration
public static string GetSamplerId(UsdShadeShader materialShader, TfToken textureSlotName)
Parameters
Type | Name | Description |
---|---|---|
UsdShadeShader | materialShader | |
TfToken | textureSlotName |
Returns
Type | Description |
---|---|
string |
Run()
See the documentation for <Node{TInput,TOutput}.Run> in the com.unity.importer package documentation for details
Declaration
public override void Run()
Overrides
UnityEngine.Importer.Node<Unity.Importer.USD.ReadMaterialNode.InputPort, Unity.Importer.USD.ReadMaterialNode.OutputPort>.Run()