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 |
addAnimation(animation: TestGltfAnimation)Creates and adds a |
Unit |
addNode(node: TestGltfModelNode)Creates and adds a |
open operator Boolean |
|
open Int |
hashCode() |
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
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 |
addNode
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 |
Public properties
gltfModelBoundingBox
var gltfModelBoundingBox: BoundingBox
Configures the axis-aligned bounding box (AABB) of the glTF model in meters, relative to the model's local coordinate space.