10월 세일을 시작합니다! 10월 24일(미국 동부시간)까지 엄선된 콘텐츠를 50% 할인받으세요!

Component Interaction System

Spronkets - 2021/07/26

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

  • 지원 플랫폼
  • 지원 엔진 버전
    4.26
  • 다운로드 유형
    엔진 플러그인
    이 제품은 코드 플러그인과 함께 미리 빌드한 바이너리와 언리얼 엔진에 통합되는 모든 소스 코드를 포함하고 있으며 원하시는 엔진 버전에 설치하여 프로젝트에 따라 활성화할 수 있습니다.

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