# MeshEntityTester

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

*** ** * ** ***


```
class MeshEntityTester
```

<br />

*** ** * ** ***

A test data accessor for a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity` to inspect and manipulate underlying fake data.

In a test environment, each entity created via `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity#create(androidx.xr.runtime.Session,androidx.xr.scenecore.CustomMesh,kotlin.collections.List,kotlin.Int,androidx.xr.runtime.math.Pose,androidx.xr.scenecore.Entity)` is backed by corresponding fake data in the fake runtime. This class provides a way to bridge the public `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity` API with its internal fake state.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/MeshEntityTester#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/testing/MeshEntityTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Matrix4>` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/MeshEntityTester#boneTransforms()` A list of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Matrix4` objects representing the value set in `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity#setBoneTransforms(kotlin.collections.List)`. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### boneTransforms

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
val boneTransforms: List<Matrix4>
```

A list of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Matrix4` objects representing the value set in `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity#setBoneTransforms(kotlin.collections.List)`. The order in the list corresponds to the bone indices. The number of transforms can be less than `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity#boneCount()`, in which case only the provided bones are updated. Any extra transforms beyond `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/MeshEntity#boneCount()` will be ignored.