CreateMaterial()

语法

Result = CreateMaterial(#Material, TextureID)
概要
Creates a new material using the specified texture.

参数

#Material A number to identify the new material. #PB_Any can be used to auto-generate this number.
TextureID The texture to use. A valid 'TextureID' can be easily obtained with TextureID().

返回值

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

已支持操作系统

所有

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