# VertexAttribute

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/VertexLayout.kt+class:androidx.xr.scenecore.VertexAttribute) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
class VertexAttribute
```

<br />

*** ** * ** ***

Defines the attribute of a vertex.

This class is used to define the semantic meaning of a vertex attribute in a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeDescriptor`. See `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType` for the supported data types.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#BONE_INDICES()` The indices of the bones that affect this vertex. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#BONE_WEIGHTS()` The weights of the bones that affect this vertex. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#COLOR()` The color of the vertex. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#NORMAL()` The normal of the vertex. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#POSITION()` The position of the vertex. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#UV0()` The first set of texture coordinates. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#UV1()` The second set of texture coordinates. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#toString()()` |

## Public companion properties

### BONE_INDICES

```
val BONE_INDICES: VertexAttribute
```

The indices of the bones that affect this vertex. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#UBYTE4()`. If this attribute is present in a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexLayout`, `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#BONE_WEIGHTS()` must also be present.

### BONE_WEIGHTS

```
val BONE_WEIGHTS: VertexAttribute
```

The weights of the bones that affect this vertex. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#UBYTE4_NORM()`. If this attribute is present in a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexLayout`, `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttribute#BONE_INDICES()` must also be present.

### COLOR

```
val COLOR: VertexAttribute
```

The color of the vertex. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#UBYTE4_NORM()`.

### NORMAL

```
val NORMAL: VertexAttribute
```

The normal of the vertex. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#FLOAT3()` normal, or a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#FLOAT4()` quaternion representing the entire tangent frame (normal, tangent, and bitangent vectors).

### POSITION

```
val POSITION: VertexAttribute
```

The position of the vertex. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#FLOAT3()`.

### UV0

```
val UV0: VertexAttribute
```

The first set of texture coordinates. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#FLOAT2()`.

### UV1

```
val UV1: VertexAttribute
```

The second set of texture coordinates. Must be a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/VertexAttributeType#FLOAT2()`.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```