ArtcoreStudios: 전체 콘텐츠 50% 할인

Smart Variable

Variable that informs you when it reaches thresholds you set

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

All statistics (health, mana, accuracy, stamina.. etc etc) share the same traits. All have min, max, and default values, and you want to know when they hit certain thresholds. Unfortunately, there is no type that has all those features, there is only float, and for every statistic you end up writing the same code that adds those common traits. So for example you have float Health, and methods Set/Get health, that operate on it, make sure it stays in its bounds, if value reaches a threshold, you call event and so on. 

Over the years of working in game dev I got fed up writing this same code over and over again. Smart variable allows to:

  • Define min, max, and default values (and change them later, if for example player levelled up)
  • Bind event to OnMin/MaxReached, OnValueChanged, or to bind to any value threshold you set.
  • Query and/or display the history of operations made on it ; ) Either for debugging, or to show in-game combat log.
  • All features support replication


I use it in my Game

기술적 세부사항

Code Modules: (Please include a full list of each Plugin module and their module type (Runtime, Editor etc.))

  •  SmartVariablePlugin

Number of Blueprints: 0

Number of C++ Classes: 3

Network Replicated: Yes

Supported Development Platforms: build and tested for Win64, but should work on all

Supported Target Build Platforms: build and tested for Win64, but should work on all