GltfModelEntityTester


class GltfModelEntityTester


GltfModelEntityTester is a testing accessor used to inspect the internal state of a GltfModelEntity within a test environment.

It utilizes reflection to bridge the 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

Unit

Creates and adds a TestGltfAnimation to the entity using the properties of the given GltfModelEntity.

Unit

Creates and adds a TestGltfModelNode to the entity using the properties of the given GltfModelEntity.

open operator Boolean
equals(other: Any?)
open Int

Public properties

BoundingBox

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-alpha16
fun addAnimation(animation: TestGltfAnimation): Unit

Creates and adds a TestGltfAnimation to the entity using the properties of the given GltfModelEntity.

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

Parameters
animation: TestGltfAnimation

The test animation feature containing the properties for the new TestGltfAnimation.

addNode

Added in 1.0.0-alpha16
fun addNode(node: TestGltfModelNode): Unit

Creates and adds a TestGltfModelNode to the entity using the properties of the given GltfModelEntity.

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

Parameters
node: TestGltfModelNode

The test node feature containing the properties for the new TestGltfModelNode.

equals

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

hashCode

open fun hashCode(): Int

Public properties

gltfModelBoundingBox

Added in 1.0.0-alpha16
var gltfModelBoundingBoxBoundingBox

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