Difference between revisions of "Mesh:setTexture"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2012.09<br/>
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
+
'''Class:''' [[Mesh]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Mesh|Mesh]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Sets the texture of the mesh.
Sets the texture.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
Mesh:setTexture(texture,slot)
<source lang="lua">
+
</syntaxhighlight>
Mesh:setTexture(texture,slot)
+
 
</source>
+
=== Parameters ===
=== <translate>Parameters</translate> ===
+
'''texture''': (TextureBase) the texture<br/>
'''texture''': (TextureBase) <translate></translate> <br/>
+
'''slot''': (number) the slot number which we are adding the Texture to (Meshes can have multiple Textures, one per slot). If omitted, slot=0 is assumed '''optional'''<br/>
'''slot''': (number) <translate>The slot number which we are adding the Texture to (Meshes can have multiple Textures, one per slot). If omitted, slot=0 is assumed</translate> '''optional'''<br/>
 
  
 
{{Mesh}}
 
{{Mesh}}

Latest revision as of 14:30, 13 July 2023