Skip to content

Circular Interaction Sphere Components

Overview

The circular interaction sphere shows a radial UI of interaction options when the player overlaps an interactable. UMIPCircularInteractionSphereComponent (CIS) handles overlap begin/end, creates/updates the sphere widget component per object, and subscribes to interaction tag (e.g. hide when talking to NPC). UMIPCirculationInteractionSphereWidgetComponent is the UWidgetComponent that displays the circular menu (attached to the interactable or a proxy).

Key traits:

  • UMIPCircularInteractionSphereComponent – Client; OnBeginOverlapping/OnEndOverlapping (BlueprintNativeEvent); CreateCircularInteractionSphereWidgetComponent, UpdateCircularInteractionSphereWidget; GetInteractableInstanceDefinitions from object; OnInteractionTag (e.g. Tag_Interaction_Talk hides CIS). Delegates: ClientCircularInteractionSphereShownDelegate, ClientCircularInteractionSphereHiddenDelegate.
  • UMIPCirculationInteractionSphereWidgetComponent – Simple UWidgetComponent; used to show the radial options widget.

All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.


Key Classes & Files

Class File
UMIPCircularInteractionSphereComponent Public/CircularInteractionSphereComponent/MIPCircularInteractionSphereComponent.h
UMIPCirculationInteractionSphereWidgetComponent Public/CircularInteractionSphereComponent/MIPCirculationInteractionSphereWidgetComponent.h

UMIPCircularInteractionSphereComponent

  • Base: UMIPClientPlayerControllerComponent.
  • Flow: Overlap with interactable → OnBeginOverlapping → CreateCircularInteractionSphereWidgetComponent (using FCircularInteractionSphereAttachmentStruct), UpdateCircularInteractionSphereWidget(InInteractableInstanceDefAssets). OnEndOverlapping / OnInteractedWithObject clean up or hide. OnInteractionTag (e.g. Talk) hides CIS.
  • Integration: UMIPInteractionComponent overlap list; interaction instance definitions from UMIPInteractionInstancesDefinitionAsset drive which options appear in the circle.