Class MaterialPropertiesClipboardData
Clipboard data that is used for copy/paste material properties of MaterialSwitchClip
Namespace: Unity.MaterialSwitch
Syntax
public class MaterialPropertiesClipboardDataMethods
Create(MaterialSwitchClip, Int32)
Create material properties clipboard data of MaterialSwitchClip that can be pasted on another MaterialSwitchClip
Declaration
[NotNull]
public static MaterialPropertiesClipboardData Create(MaterialSwitchClip src, int materialIndex)Parameters
| Type | Name | Description | 
|---|---|---|
| MaterialSwitchClip | src | The MaterialSwitchClip source | 
| Int32 | materialIndex | The index of the material in the clip. Index less than 0 means global properties | 
Returns
| Type | Description | 
|---|---|
| MaterialPropertiesClipboardData | Material properties data that can be pasted on another MaterialSwitchClip | 
PasteInto(MaterialSwitchClip, Int32)
Paste this MaterialPropertiesClipboardData into a certain material in the target MaterialSwitchClip.
Declaration
public bool PasteInto(MaterialSwitchClip target, int targetMaterialIndex)Parameters
| Type | Name | Description | 
|---|---|---|
| MaterialSwitchClip | target | The MaterialSwitchClip target | 
| Int32 | targetMaterialIndex | The index of the material in the target clip. Index less than 0 means global properties. | 
Returns
| Type | Description | 
|---|---|
| Boolean | true if the paste is successful, false otherwise |