# 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)

*** ** * ** ***


```
public final class MeshEntityTester
```

<br />

*** ** * ** ***

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

In a test environment, each entity created via `https://developer.android.com/reference/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/androidx/xr/scenecore/MeshEntity` API with its internal fake state.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MeshEntityTester#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Matrix4>` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MeshEntityTester#getBoneTransforms()()` A list of `https://developer.android.com/reference/androidx/xr/runtime/math/Matrix4` objects representing the value set in `https://developer.android.com/reference/androidx/xr/scenecore/MeshEntity#setBoneTransforms(kotlin.collections.List)`. |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/MeshEntityTester#hashCode()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getBoneTransforms

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

```
public final @NonNull List<@NonNull Matrix4> getBoneTransforms()
```

A list of `https://developer.android.com/reference/androidx/xr/runtime/math/Matrix4` objects representing the value set in `https://developer.android.com/reference/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/androidx/xr/scenecore/MeshEntity#boneCount()`, in which case only the provided bones are updated. Any extra transforms beyond `https://developer.android.com/reference/androidx/xr/scenecore/MeshEntity#boneCount()` will be ignored.

### hashCode

```
public int hashCode()
```