Paradies Project
Loading...
Searching...
No Matches
ADamageTextActor Class Reference

데미지 숫자를 3D 월드에 표시하는 풀링 가능한 액터입니다. More...

#include <DamageTextActor.h>

Inheritance diagram for ADamageTextActor:
Inheritance graph
Collaboration diagram for ADamageTextActor:
Collaboration graph

Public Member Functions

 ADamageTextActor ()
virtual void OnPoolActivate_Implementation () override
 풀에서 꺼내질 때 호출되어 액터를 초기화하고 활성화합니다.
virtual void OnPoolDeactivate_Implementation () override
 풀로 반납될 때 호출되어 액터를 숨기고 비활성화합니다.
void InitializeDamageText (float DamageAmount, bool bIsCritical, const FVector &WorldLocation)
 위젯에 데미지를 전달하고, 지정된 시간 후 자동으로 풀로 반납하는 타이머를 작동시킵니다.
Public Member Functions inherited from IObjectPoolInterface
void OnPoolActivate ()
 풀에서 꺼낼 때 호출(초기화, 위치 설정 등)
void OnPoolDeactivate ()
 풀로 돌아갈 때 호출 (타이머 정지, 상태 리셋 등)

Protected Member Functions

 UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="DamageText|Config", meta=(ClampMin="0.1", ClampMax="5.0", DisplayName="화면 체류 시간(초)")) float DisplayTime
 데미지 텍스트가 화면에 체류하는 시간 (초 단위).
 UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="DamageText|Config", meta=(ClampMin="0.0", ClampMax="500.0", DisplayName="상승 거리(cm)")) float FlyUpDistance
 위젯이 위로 떠오르는 거리 (cm 단위).
 UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="DamageText|Config", meta=(ClampMin="10.0", ClampMax="500.0", DisplayName="상승 속도(cm/s)")) float FlyUpSpeed
 위젯이 떠오르는 속도 (초당 cm).

Protected Attributes

TObjectPtr< USceneComponent > RootComp = nullptr
 기준점이 되는 루트 컴포넌트.
TObjectPtr< UWidgetComponent > DamageWidgetComponent = nullptr
 UDamageTextWidget을 3D 공간에 띄워줄 위젯 컴포넌트.

Detailed Description

데미지 숫자를 3D 월드에 표시하는 풀링 가능한 액터입니다.

UWidgetComponent를 통해 3D 공간에 UMG 위젯을 표시하며, DisplayTime 이후 자동으로 풀에 반납됩니다. 크리티컬 히트 여부에 따라 위젯 스타일이 달라집니다.

Constructor & Destructor Documentation

◆ ADamageTextActor()

ADamageTextActor::ADamageTextActor ( )

생성 및 설정

Member Function Documentation

◆ InitializeDamageText()

void ADamageTextActor::InitializeDamageText ( float DamageAmount,
bool bIsCritical,
const FVector & WorldLocation )

위젯에 데미지를 전달하고, 지정된 시간 후 자동으로 풀로 반납하는 타이머를 작동시킵니다.

Parameters
DamageAmount표시할 데미지 수치
bIsCritical크리티컬 히트 여부 (색상/크기 변경)
WorldLocation3D 월드상 표시 위치 (타겟 머리 위 등)
Here is the call graph for this function:

◆ OnPoolDeactivate_Implementation()

void ADamageTextActor::OnPoolDeactivate_Implementation ( )
overridevirtual

풀로 반납될 때 호출되어 액터를 숨기고 비활성화합니다.

◆ UPROPERTY() [1/3]

ADamageTextActor::UPROPERTY ( EditAnywhere ,
BlueprintReadWrite ,
Category = "DamageText|Config",
meta = (ClampMin="0.0", ClampMax="500.0", DisplayName="상승 거리(cm)") )
protected

위젯이 위로 떠오르는 거리 (cm 단위).

0이면 제자리에 고정됩니다.

Here is the call graph for this function:

◆ UPROPERTY() [2/3]

ADamageTextActor::UPROPERTY ( EditAnywhere ,
BlueprintReadWrite ,
Category = "DamageText|Config",
meta = (ClampMin="0.1", ClampMax="5.0", DisplayName="화면 체류 시간(초)") )
protected

데미지 텍스트가 화면에 체류하는 시간 (초 단위).

기획자가 BP 디테일 패널에서 조절할 수 있습니다.

Here is the caller graph for this function:

◆ UPROPERTY() [3/3]

ADamageTextActor::UPROPERTY ( EditAnywhere ,
BlueprintReadWrite ,
Category = "DamageText|Config",
meta = (ClampMin="10.0", ClampMax="500.0", DisplayName="상승 속도(cm/s)") )
protected

위젯이 떠오르는 속도 (초당 cm).

높을수록 빠르게 이동합니다.

Here is the call graph for this function:

Member Data Documentation

◆ DamageWidgetComponent

TObjectPtr<UWidgetComponent> ADamageTextActor::DamageWidgetComponent = nullptr
protected

UDamageTextWidget을 3D 공간에 띄워줄 위젯 컴포넌트.

SetWidgetSpace(Screen)으로 항상 카메라를 바라봅니다.


The documentation for this class was generated from the following files:
  • Source/Paradise/Public/Framework/InGame/Actors/DamageTextActor.h
  • Source/Paradise/Private/Framework/InGame/Actors/DamageTextActor.cpp