Class MaterialSlotMatch
Class MaterialSlotMatch.
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
public class MaterialSlotMatch : object
Constructors
MaterialSlotMatch(MaterialSlot)
Initializes a new instance of the MaterialSlotMatch class.
Declaration
public MaterialSlotMatch(MaterialSlot materialSlot)
Parameters
Type | Name | Description |
---|---|---|
MaterialSlot | materialSlot | The material slot. |
Methods
Matches(GameObject)
Matcheses the specified game object.
Declaration
public virtual MaterialSlot Matches(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The game object. |
Returns
Type | Description |
---|---|
MaterialSlot | MaterialSlot. |
Matches(Renderer, String)
Matches the specified Renderer.
Declaration
public virtual MaterialSlot Matches(Renderer renderer, string path)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | |
String | path |
Returns
Type | Description |
---|---|
MaterialSlot |