SetObjectColor
From Onset Developer Wiki
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
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture