Skip to content

Conversation

@myers
Copy link

@myers myers commented Dec 8, 2025

Summary

  • Adds object3DName prop to set the underlying Three.js Object3D's name property
  • Adds userData prop to set custom user data on the Object3D
  • Both props are available on all components built with the build() wrapper

Motivation

These props are useful for debugging and writing automated tests, allowing developers to:

  • Identify components by name in the Three.js scene graph, then interact with them in tests
  • Attach custom metadata to components for test assertions or runtime inspection

Add UIKitObject3DProps interface to allow setting the underlying Object3D's
name and userData properties. This is useful for debugging and writing
automated tests.

- object3DName: sets the Object3D.name property
- userData: sets custom user data on the Object3D

The name prop is prefixed as object3DName to avoid conflicts with components
like Input that already have a name property for HTML form semantics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant