Component Interaction System

Spronkets - 2021/07/26

Jump start any project with a simple and effective interaction system.

  • サポートされたプラットフォーム
  • サポートされたエンジンバージョン
    4.26
  • ダウンロードのタイプ
    エンジン プラグイン
    この製品には、コード プラグインが含まれており、ビルド済みのバイナリと Unreal Engine に統合される全ソースコードが完備されています。任意のエンジン バージョンにインストールし、プロジェクト毎に有効化することが可能です。

An interaction system is useful when you want a player to be able to interact with objects in the level. This could be to open a door, ignite a campfire, push a button, pick up items, and so forth. This plugin supports most of these use cases in an intelligent, plug-n-play manor. No need to implement these interaction behaviors in your Character/Pawn or in the object to interact with. All you care about is the expected result, right? Simply add the input bindings you wish to support in your Project Settings, add the "InteractorComponent" to your Character/Pawn in either C++ or BP ("Interactor"), then add the "InteractableComponent" to the Actor to interact with in either C++ or BP ("Interactable"). That's it! Now you can implement your own functionality when the appropriate interaction events are fired! Example documentation provided, as well as a support-only Discord server, however, the First Person Example Project and the Third Person Example Project should provide enough information to get you started! This provides a great alternative to the usage of interfaces in your projects! Additional updates are planned to add new features. If you are having issues, please reach out on Discord.

テクニカルノート

Features:

  •  InteractorComponent - ActorComponent used to extend the owning Pawn to add the ability to detect an InteractableComponent and instigate interaction events.
  • Supported Action input bindings: Interact, InteractStepUp, InteractStepDown
  • Supported Axis input binding: InteractStep
  •  InteractableComponent - WidgetComponent to allow an Actor that has a mesh with collision to be detectable by the InteractorComponent and handle interaction events. This can be assigned a Widget Class for UI display.
  • Events emitted: OnStartFocusing, OnStopFocusing, OnStartInteracting, OnStopInteracting, OnInteract, OnInteractStep
  •  InteractableWidget - UserWidget intended to display data for an InteractableComponent
  • PP_Outline - Example outline material to outline an InteractableComponent
  • PP_Outline_Inst - An instance of PP_Outline
  • WBP_Interactable - Example of an InteractableWidget UI

Code Modules:

  •  ComponentInteractionSystem, Runtime

Number of Blueprints: 3

Number of C++ Classes: 3

Network Replicated: No

Supported Development Platforms: Win64

Supported Target Build Platforms: Win64

Contact/Support: https://discord.gg/7GmgTRSzNZ

Documentation: https://docs.google.com/document/d/1gQE2VADXc0YSFw3C-D3dd0iRFeWdVOYSLhiVEDI6HG0/edit?usp=sharing

Example Project: https://drive.google.com/file/d/1rvNkRXUtwL_EsTxlUHozFqeWZScU5Ndq/view?usp=sharing