CopyMaterial()

语法

Result = CopyMaterial(#Material, #NewMaterial)
概要
Creates a new material which is the exact copy of the specified material.

参数

#Material The material to copy.
#NewMaterial A number to identify the new material. #PB_Any can be used to auto-generate this number.

返回值

Nonzero if the material was successfully duplicated, zero otherwise. If #PB_Any was used for the #NewMaterial parameter then the generated number is returned on success.

已支持操作系统

所有

<- AddMaterialLayer() - Material Index - CountMaterialLayers() ->