Click or drag to resize
Ab4d.SharpEngine logo

MaterialClone 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.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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

Material
cloned material (with new Id)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Materials.Material.Clone(System.String)"]

See Also