 |
Material.Clone Method |
Clones the current material with creating a shallow copy of this Material (cloned material has new Id; other properties are copied but referenced objects are preserved).
Namespace: Ab4d.SharpEngine.MaterialsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic virtual Material Clone(
string? name = null
)
Parameters
- name String (Optional)
- optional new name of the cloned material; when null (by default), then the name of the original material is preserved
Return Value
Materialcloned material (with new Id)
See Also