TilePicOption

TilePicOption class

Represents tile picture as texture.

class TilePicOption;

Constructors

NameDescription
constructor()Default Constructor.

Methods

MethodDescription
getOffsetX()Gets or sets the X offset for tiling picture.
setOffsetX(number)Gets or sets the X offset for tiling picture.
getOffsetY()Gets or sets the Y offset for tiling picture.
setOffsetY(number)Gets or sets the Y offset for tiling picture.
getScaleX()Gets or sets the X scale for tiling picture.
setScaleX(number)Gets or sets the X scale for tiling picture.
getScaleY()Gets or sets the Y scale for tiling picture.
setScaleY(number)Gets or sets the Y scale for tiling picture.
getMirrorType()Gets or sets the mirror type for tiling.
setMirrorType(MirrorType)Gets or sets the mirror type for tiling.
getAlignmentType()Gets or sets the alignment for tiling.
setAlignmentType(RectangleAlignmentType)Gets or sets the alignment for tiling.

constructor()

Default Constructor.

constructor();

getOffsetX()

Gets or sets the X offset for tiling picture.

getOffsetX() : number;

setOffsetX(number)

Gets or sets the X offset for tiling picture.

setOffsetX(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getOffsetY()

Gets or sets the Y offset for tiling picture.

getOffsetY() : number;

setOffsetY(number)

Gets or sets the Y offset for tiling picture.

setOffsetY(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getScaleX()

Gets or sets the X scale for tiling picture.

getScaleX() : number;

setScaleX(number)

Gets or sets the X scale for tiling picture.

setScaleX(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getScaleY()

Gets or sets the Y scale for tiling picture.

getScaleY() : number;

setScaleY(number)

Gets or sets the Y scale for tiling picture.

setScaleY(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getMirrorType()

Gets or sets the mirror type for tiling.

getMirrorType() : MirrorType;

Returns

MirrorType

setMirrorType(MirrorType)

Gets or sets the mirror type for tiling.

setMirrorType(value: MirrorType) : void;

Parameters:

ParameterTypeDescription
valueMirrorTypeThe value to set.

getAlignmentType()

Gets or sets the alignment for tiling.

getAlignmentType() : RectangleAlignmentType;

Returns

RectangleAlignmentType

setAlignmentType(RectangleAlignmentType)

Gets or sets the alignment for tiling.

setAlignmentType(value: RectangleAlignmentType) : void;

Parameters:

ParameterTypeDescription
valueRectangleAlignmentTypeThe value to set.