engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
FDamageEvent结构体 参考

Event used by AActor::TakeDamage and related functions 更多...

#include <EngineTypes.h>

+ 类 FDamageEvent 继承关系图:

Public 成员函数

 FDamageEvent ()
 Default constructor (no initialization).
 
virtual void GetBestHitInfo (AActor const *HitActor, AActor const *HitInstigator, struct FHitResult &OutHitInfo, FVector &OutImpulseDir) const
 This is for compatibility with old-style functions which want a unified set of hit data regardless of type of hit. 更多...
 

Public 属性

TSubclassOf< class UDamageType > DamageTypeClass
 Optional DamageType for this event. 更多...
 

静态 Public 属性

static const int32 ClassID = 0
 ID for this class. 更多...
 

详细描述

Event used by AActor::TakeDamage and related functions

成员函数说明

◆ GetBestHitInfo()

virtual void FDamageEvent::GetBestHitInfo ( AActor const *  HitActor,
AActor const *  HitInstigator,
struct FHitResult &  OutHitInfo,
FVector &  OutImpulseDir 
) const
virtual

This is for compatibility with old-style functions which want a unified set of hit data regardless of type of hit.

Ideally this will go away over time.

被 FPointDamageEvent , 以及 FRadialDamageEvent 重载.

类成员变量说明

◆ ClassID

const int32 FDamageEvent::ClassID = 0
static

ID for this class.

NOTE this must be unique for all damage events.

◆ DamageTypeClass

TSubclassOf<class UDamageType> FDamageEvent::DamageTypeClass

Optional DamageType for this event.

If nullptr, UDamageType will be assumed.


该结构体的文档由以下文件生成: