ScaleMaterial()

语法

ScaleMaterial(#Material, x, y [, Layer])
概要
Scales the material. The parameters 'x' and 'y' are scale factors.

参数

#Material The material to use.
x, y The scale factors (the current material size is multiplied by these values):
- a value of 1.0 means that the size isn't changed
- a value between 0.0 and 1.0 means that the material is scaled down (ie: a scale of 0.5 will be half the size)
- a value above 1.0 means that the material is scaled up (ie: a scale of 2.0 will double the size)
Layer (optional) The layer to scale. The first layer is zero. If this parameter is omitted, the layer zero is scaled.

返回值

无.

Remarks

To get the current scale values, use GetMaterialAttribute().

参阅

GetMaterialAttribute()

已支持操作系统

所有

<- RotateMaterial() - Material Index - ScrollMaterial() ->