Class MaterialSlotMatch
Class MaterialSlotMatch.
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
[Serializable]
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Core", "Unity.Industrial.Configurator", null)]
public class MaterialSlotMatch
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 |