Copy or paste properties from one UnityEngine.Material
to another.
More...
Static Public Member Functions | |
static void | Copy (Material source) |
Copy properties of specified material as source to paste later. More... | |
static bool | Paste (Material target) |
Paste properties of the source copied before to the specified target. More... | |
Copy or paste properties from one UnityEngine.Material
to another.
Operate by UnityEngine.Material
context menu "Copy Properties" and "Paste Properties". This works like the similar menu of UnityEngine.Component
, and will change the shader. To keep valid after script reloaded by a temporary material as medium storage. Copy properties by built-in Material.CopyPropertiesFromMaterial()
method.
|
static |
Copy properties of specified material as source to paste later.
source | Source. |
|
static |
Paste properties of the source copied before to the specified target.
target | Target. |
false
, if the source doesn't exist yet, otherwise true
.