Tile - YEntity - Set Color – Ylands

From Bohemia Interactive Community
Revision as of 09:52, 8 July 2021 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Set Color(Entity, Color) == File:YlandsTile-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set Color(Entity, Color)

YlandsTile-1129.png

setColor(color: YColor): void;

Parameters

color

New color

Description

Allows to apply one color on to all color channels of target object, without paint splash effect.

Set Color(Entity, Color id, Color)

YlandsTile-1006.png

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

Parameters

colorId

Target entity color channel ID

color

Target color.

Description

Allows to set color of selected color channel of target entity.

Notes

  • Alpha of the color governs the emissivity of the material.