click-target

Locate an XR scene target and click it with a controller.

364|73|Updated Aug 25, 2025
One-click install
npx skills add https://github.com/facebook/immersive-web-sdk --skill click-target
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: click-target
Source: https://github.com/facebook/immersive-web-sdk/tree/main/packages/starter-assets/claude-injections/skills/click-target
Command: npx skills add https://github.com/facebook/immersive-web-sdk --skill click-target

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Find a target object in the XR scene and click it using a controller, then verify the click registers.

Core Features & Use Cases

  • Locate target objects via the scene hierarchy to identify interactable elements.
  • Position headset and controller to align with the target, perform a click, and verify the result through console logs.
  • Use for UI testing, interaction verification, and panel/button activation within XR experiences.

Quick Start

Locate the target in the scene, orient the headset to face it, position the controller, click, and verify the expected console log.

Frequently Asked Questions about click-target

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate clicking a UI button in an XR scene using a controller?

Locating XR UI targets for controller clicking involves identifying interactable elements through the scene hierarchy, computing target transforms, and adjusting controller positioning. This ensures reliable button activation and UI interaction verification within XR experiences.

How do I verify that a controller click registered on an XR panel element?

You can verify an XR controller click by capturing console logs immediately after performing the click action. The Skill positions the controller to align with the target transform and checks these logs to confirm the panel element activation was successful.

What is the best way to find a specific interactable object in an XR scene hierarchy for testing?

Finding a specific interactable object in an XR scene hierarchy for testing involves traversing the hierarchy to identify elements, computing target transforms, and adjusting controller positioning. This enables precise UI interaction testing and reliable button verification.

Why does my XR controller click fail to register on target objects during UI testing?

XR controller clicks may fail to register due to misaligned headset orientation or incorrect controller positioning relative to the target transform. Adjusting controller positioning and verifying target object location in the scene hierarchy helps ensure successful click registration.

Do I need to orient the headset before positioning the controller for XR interaction testing?

Yes, orienting the headset to face the target is required before positioning the controller. This alignment ensures the controller is correctly aimed at the computed target transform, allowing the click to register reliably during XR interaction testing.