# GltfModelEntityTester

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/GltfModelEntityTester.kt+class:androidx.xr.scenecore.testing.GltfModelEntityTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
class GltfModelEntityTester
```

<br />

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelEntityTester` is a testing accessor used to inspect the internal state of a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity` within a test environment.

It utilizes reflection to bridge the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity` with the fake runtime, allowing tests to verify nodes, animations, and bounding box data that are otherwise encapsulated or tied to the underlying runtime implementation.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelEntityTester#addAnimation(androidx.xr.scenecore.testing.TestGltfAnimation)(animation: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfAnimation)` Creates and adds a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfAnimation` to the entity using the properties of the given `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelEntityTester#addNode(androidx.xr.scenecore.testing.TestGltfModelNode)(node: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfModelNode)` Creates and adds a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfModelNode` to the entity using the properties of the given `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity`. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelEntityTester#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/GltfModelEntityTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/BoundingBox` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelEntityTester#gltfModelBoundingBox()` Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space. |

## Public functions

### addAnimation

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

```
fun addAnimation(animation: TestGltfAnimation): Unit
```

Creates and adds a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfAnimation` to the entity using the properties of the given `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity`.

This simulates the addition of a new animation to the underlying runtime entity.

| Parameters |
|---|---|
| `animation: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfAnimation` | The test animation feature containing the properties for the new `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfAnimation`. |

### addNode

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

```
fun addNode(node: TestGltfModelNode): Unit
```

Creates and adds a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfModelNode` to the entity using the properties of the given `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModelEntity`.

This simulates the attachment of a new node to the underlying runtime entity.

| Parameters |
|---|---|
| `node: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfModelNode` | The test node feature containing the properties for the new `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/TestGltfModelNode`. |

### equals

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

### hashCode

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

## Public properties

### gltfModelBoundingBox

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

```
var gltfModelBoundingBox: BoundingBox
```

Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.