SetObjectColor

From Onset Developer Wiki
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