{{newin|[[0.10.0]]|100|type=function}}
Gets whether a specific vertex attribute in the Mesh is enabled. Vertex data from disabled attributes is not used when drawing the Mesh.
== Function ==
=== Synopsis ===
<source lang="lua">
enabled = Mesh:isAttributeEnabled( name )
</source>
=== Arguments ===
{{param|string|name|The name of the vertex attribute to be checked.}}
=== Returns ===
{{param|boolean|enabled|Whether the vertex attribute is used when drawing this Mesh.}}

== Notes ==
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]].
== See Also ==
* [[parent::Mesh]]
* [[Mesh:setAttributeEnabled]]
* [[Mesh:getVertexFormat]]
* [[love.graphics.draw]]
[[Category:Functions]]
{{#set:Description=Gets whether a specific vertex attribute in the Mesh is enabled.}}
== Other Languages ==
{{i18n|Mesh:isAttributeEnabled}}