SetObjectColor

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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