Core RPG uses context providers and action handlers to keep click, hover, and object behavior modular.
Core pieces
| Script | Role |
|---|---|
InteractionManager | Coordinates hover, selection, context menus, and action execution. |
IContextActionProvider | Interface for anything that exposes available actions. |
WorldObjectInteractable | General world object interaction entry point. |
WorldObjectContextActionProvider | Provides configured object actions. |
IWorldObjectActionHandler | Handler interface for object specific behavior. |
Included handlers
TreeActionHandlerFishingSpotActionHandlerDoorActionHandlerStoveActionHandlerTeleportActionHandler
Create a new interactable
- Add a collider to the object.
- Add
WorldObjectInteractableor a compatible context provider. - Add or create an action handler implementing
IWorldObjectActionHandler. - Configure display text, priority, distance/range expectations, and handler references.
- Test hover label, left click/default action, and context menu actions.