## VertexElementUV class

  Defines the UV coordinates for specified components.  A geometry can have multiple VertexElementUV elements, and each one have different TextureMappings.


## Methods

### constructor{#constructor}

| Name | Description |
| --- | --- |
| constructor() | Initializes a new instance of the VertexElementUV class. The default texture mapping type is TextureMapping.DIFFUSE | 

 **Result:**



---


### constructor_overload{#constructor_overload}

| Name | Description |
| --- | --- |
| constructor_overload(textureMapping) | Initializes a new instance of the VertexElementUV class. | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| textureMapping | TextureMapping | TextureMapping |

 **Result:**



---


### getData{#getData}

| Name | Description |
| --- | --- |
| getData() | Gets the vertex data | 

 **Result:**



---


### getVertexElementType{#getVertexElementType}

| Name | Description |
| --- | --- |
| getVertexElementType() | Gets the type of the VertexElementThe value of the property is VertexElementType integer constant. | 

 **Result:**



---


### getName{#getName}

| Name | Description |
| --- | --- |
| getName() | Gets or sets the name. The name. | 

 **Result:**



---


### setName{#setName}

| Name | Description |
| --- | --- |
| setName(value) | Gets or sets the name. The name. | 

 **Result:**



---


### getMappingMode{#getMappingMode}

| Name | Description |
| --- | --- |
| getMappingMode() | Gets or sets how the element is mapped. The value of the property is MappingMode integer constant. | 

 **Result:**



---


### setMappingMode{#setMappingMode}

| Name | Description |
| --- | --- |
| setMappingMode(value) | Gets or sets how the element is mapped. The value of the property is MappingMode integer constant. | 

 **Result:**



---


### getReferenceMode{#getReferenceMode}

| Name | Description |
| --- | --- |
| getReferenceMode() | Gets or sets how the element is referenced. The value of the property is ReferenceMode integer constant. | 

 **Result:**



---


### setReferenceMode{#setReferenceMode}

| Name | Description |
| --- | --- |
| setReferenceMode(value) | Gets or sets how the element is referenced. The value of the property is ReferenceMode integer constant. | 

 **Result:**



---


### getIndices{#getIndices}

| Name | Description |
| --- | --- |
| getIndices() | Gets the indices data The index array. | 

 **Result:**



---


### copyTo{#copyTo}

| Name | Description |
| --- | --- |
| copyTo(target) | Copies data to specified element | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| target | VertexElementVector4 | Target. |

 **Result:**



---


### setData{#setData}

| Name | Description |
| --- | --- |
| setData(data) | Load data | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|  dat | Vector4[] | null |

 **Result:**



---


### clear{#clear}

| Name | Description |
| --- | --- |
| clear() | Removes all elements from the direct and the index arrays. | 

 **Result:**



---


### setIndices{#setIndices}

| Name | Description |
| --- | --- |
| setIndices(data) | Load indices | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|  dat | Number[] | null |

 **Result:**



---


### toString{#toString}

| Name | Description |
| --- | --- |
| toString() | String representation of vertex element. | 

 **Result:**
String


---



