SetObjectTexture: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{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

SetObjectTexture

Type: Function
Context: Client
Introduced: v1.0

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