SetObjectColor

From Onset Developer Wiki
Revision as of 20:39, 30 August 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetObjectColor

Type: Function
Context: Client
Introduced: v1.0

Description

This creates a new material with a simple color and assigns it to a material slot.

Syntax

SetObjectColor(object, IntColor [, MaterialSlot])

Parameters

  • object
    The object identifier.
  • IntColor
    Color as an integer from RGBA.
  • MaterialSlot (optional)
    To which material slot this color should apply to.

Return Value

  • Returns true on success.

Example

__EDIT_ME__

See also