Tile - YPreviewEntity - Set Color – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Set Color(Preview entity, Color id, Color)

YlandsTile-1454.png

setColor(colorId: number, color: YColor): void;

Parameters

colorId

color

Availability

Description

Sets the color channel of the target Preview Object to the selected color.

Set Color(Preview entity, Color)

YlandsTile-1455.png

setColor(color: YColor): void;

Parameters

color

Availability

Description

Sets all color channels of the target Preview Object to the selected color.