# GltfModelTester

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

*** ** * ** ***


```
class GltfModelTester
```

<br />

*** ** * ** ***

A data container for inspecting the properties of a `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModel` resource.

## 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/GltfModelTester#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/GltfModelTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelTester#assetData()` The raw byte data of the glTF asset. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelTester#assetKey()` A unique key identifying the asset in the fake rendering runtime. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/GltfModelTester#assetPath()` The path or URI string of the glTF asset file used to create the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModel`. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### assetData

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

```
val assetData: ByteArray
```

The raw byte data of the glTF asset.

### assetKey

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

```
val assetKey: String
```

A unique key identifying the asset in the fake rendering runtime.

### assetPath

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

```
val assetPath: String
```

The path or URI string of the glTF asset file used to create the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModel`.

This value represents:

- The `path` parameter from `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModel.Companion#create(androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` when created via a `https://developer.android.com/reference/java/nio/file/Path.html` (relative to the application's `assets/` folder).

- The `uri` parameter from `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfModel.Companion#create(androidx.xr.scenecore.runtime.RenderingRuntime,kotlin.String)` when created via an `https://developer.android.com/reference/android/net/Uri.html`.

The default value is `""` (an empty string). This typically indicates that the model was not loaded from a file path or URI (for example, if it was created using a byte array via `GltfModel.create(session, assetData, assetKey)`).