Class MaterialSlot
Class MaterialSlot.
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
public class MaterialSlot : IEquatable<MaterialSlot>
Constructors
MaterialSlot(Renderer, Int32)
Initializes a new instance of the MaterialSlot class.
Declaration
public MaterialSlot(Renderer renderer, int index)
Parameters
| Type | Name | Description | 
|---|---|---|
| Renderer | renderer | The renderer.  | 
| Int32 | index | The index.  | 
Properties
index
Gets the index.
Declaration
public int index { get; }
Property Value
| Type | Description | 
|---|---|
| Int32 | The index.  | 
renderer
Gets the renderer.
Declaration
public Renderer renderer { get; }
Property Value
| Type | Description | 
|---|---|
| Renderer | The renderer.  | 
Methods
Clone()
Clones this instance.
Declaration
public MaterialSlot Clone()
Returns
| Type | Description | 
|---|---|
| MaterialSlot | MaterialSlot.  | 
Equals(MaterialSlot)
Equalses the specified other.
Declaration
public bool Equals(MaterialSlot other)
Parameters
| Type | Name | Description | 
|---|---|---|
| MaterialSlot | other | The other.  | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description | 
|---|---|
| Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.  | 
ToString()
Returns a 
Declaration
public override string ToString()
Returns
| Type | Description | 
|---|---|
| String | A   |