RotateMaterial()

Syntax

RotateMaterial(#Material, Angle, Mode [, Layer])
Description
Rotates the material layer according to the angle value.

Parameters

#Material The material to use.
Angle The rotation angle, in degree.
Mode It can be one of the following value:
  #PB_Material_Fixed   : The material is rotated of the specified 'Angle', without regards of the previous rotate function.
  #PB_Material_Animated: Each frame is the material is rotated of the specified 'Angle' automatically.
Layer (optional) The layer to rotate. The first layer is zero. If this parameter is omitted, the layer zero is rotated.

Return value

None.

Remarks

To get the current rotate value, use GetMaterialAttribute().

See Also

GetMaterialAttribute()

Supported OS

All

<- ResetMaterial() - Material Index - ScaleMaterial() ->