SetObjectTexture: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Sets a texture on an object. For animated ones check [[SetObjectAnimatedTexture]].}} | ||
{{FuncSyntax|SetObjectTexture(object, TextureFile [, MaterialSlot])}} | {{FuncSyntax|SetObjectTexture(object, TextureFile [, MaterialSlot])}} |
Revision as of 14:58, 14 November 2019
Description
Sets a texture on an object. For animated ones check SetObjectAnimatedTexture.
Syntax
SetObjectTexture(object, TextureFile [, MaterialSlot])
Parameters
- object
The object identifier. - TextureFile
The texture file in your package folder. - MaterialSlot (optional)
The material slot of the object model
Return Value
- __EDIT_ME__
Example
__EDIT_ME__
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectAnimatedTexture