{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=関数}}
Enables or disables a specific vertex attribute in the Mesh. Vertex data from disabled attributes is not used when drawing the Mesh.
== 関数 ==
=== 概要 ===
<source lang="lua">
Mesh:setAttributeEnabled( name, enable )
</source>
=== 引数 ===
{{param (日本語)|string|name|The name of the vertex attribute to enable or disable.}}
{{param (日本語)|boolean|enable|Whether the vertex attribute is used when drawing this Mesh.}}
=== 返値 ===
ありません。

== 注釈 ==
If a Mesh wasn't [[love.graphics.newMesh|created]] with a custom vertex format, it will have 3 vertex attributes named <code>VertexPosition</code>, <code>VertexTexCoord</code>, and <code>VertexColor</code>. Otherwise the attribute name must either match one of the vertex attributes specified in the [[Mesh:getVertexFormat|vertex format]] when [[love.graphics.newMesh|creating the Mesh]], 
or must match a vertex attribute from another Mesh attached to this Mesh via [[Mesh:attachAttribute]].
== 関連 ==
* [[parent::Mesh (日本語)]]
* [[Mesh:isAttributeEnabled (日本語)]]
* [[Mesh:getVertexFormat (日本語)]]
* [[love.graphics.draw (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Enables or disables a specific vertex attribute in the Mesh.}}
== そのほかの言語 ==
{{i18n (日本語)|Mesh:setAttributeEnabled}}