add-interactivity

Add pointer events, trigger areas, and raycasting to Decentraland SDK7 entities.

3|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/decentraland/sdk-skills --skill add-interactivity-decentraland
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-interactivity
Source: https://github.com/decentraland/sdk-skills/tree/main/add-interactivity
Command: npx skills add https://github.com/decentraland/sdk-skills --skill add-interactivity-decentraland

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It enables developers to add clickable, hoverable, and zone‑triggered behaviors to Decentraland entities without duplicating composite assets, handling colliders, and managing input systems manually.

Core Features & Use Cases

  • Pointer Events: Attach click, hover, and release handlers to existing entities using pointerEventsSystem.
  • Trigger Areas: Detect player entry, exit, and stay events for proximity‑based interactions.
  • Raycasting & Global Input: Perform one‑shot raycasts and listen for key presses anywhere in the scene.
  • Best‑Practice Guidance: Ensures proper collider layers, max distance settings, and cleanup of handlers.

Quick Start

Ask the AI to add a clickable door to my scene using the add-interactivity skill.

Frequently Asked Questions about add-interactivity

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

FAQPage Schema
How do I add clickable objects and pointer events in Decentraland SDK7?

To add clickable objects in Decentraland SDK7, attach click, hover, and release handlers to existing entities using the pointerEventsSystem. This enables interactive elements without manually managing input systems.

How do trigger areas work for player proximity detection in Decentraland scenes?

Trigger areas in Decentraland detect player entry, exit, and stay events for proximity-based interactions. They allow scenes to react when users enter or leave specific zones without duplicating composite assets.

Can I perform raycasting and listen for global key presses in a Decentraland scene?

Yes, Decentraland scenes support one-shot raycasts and global key press listeners. These allow you to perform spatial queries and capture input from anywhere in the scene.

Do I need specific collider layers to handle interactivity in Decentraland?

Yes, proper collider layers are required for interaction handling in Decentraland. The system ensures appropriate collider layers and max distance settings are configured for reliable pointer events and trigger detection.

What is the best way to manage hover highlights on entities in Decentraland?

The best way to manage hover highlights is using the pointerEventsSystem to attach hover handlers to entities. This approach handles colliders and input systems automatically, avoiding manual duplication.

Why are my pointer events not working on entities in Decentraland SDK7?

Pointer events may fail if collider layers are misconfigured or max distance settings are incorrect. Following best-practice guidance ensures proper collider setup and handler cleanup to maintain reliable interactivity.