{{newin (日本語)|[[0.9.1 (日本語)|0.9.1]]|091|type=関数}}

{{notice|[[0.9.1]] (bug) [[Texture]]s are not released from memory automatically when nil-ing meshes. Call Mesh:setTexture() to manually clear.}}

Sets the texture ([[Image]] or [[Canvas]]) used when drawing the Mesh.

== 関数 ==
=== 概要 ===
<source lang="lua">
Mesh:setTexture( texture )
</source>
=== 引数 ===
{{param (日本語)|Texture|texture|The Image or Canvas to texture the Mesh with when drawing.}}
=== 返値 ===
ありません。

== 関数 ==
=== 概要 ===
<source lang="lua">
Mesh:setTexture( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。
=== 注釈 ===
Disables any texture from being used when drawing the Mesh. Untextured meshes have a white color by default.

== 関連 ==
* [[parent::Mesh (日本語)]]
* [[Mesh:getTexture (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the texture ([[Image]] or [[Canvas]]) used when drawing the Mesh.}}
== そのほかの言語 ==
{{i18n (日本語)|Mesh:setTexture}}